postgresql/src/backend/parser
Tom Lane 7863404417 A bunch of changes aimed at reducing backend startup time...
Improve 'pg_internal.init' relcache entry preload mechanism so that it is
safe to use for all system catalogs, and arrange to preload a realistic
set of system-catalog entries instead of only the three nailed-in-cache
indexes that were formerly loaded this way.  Fix mechanism for deleting
out-of-date pg_internal.init files: this must be synchronized with transaction
commit, not just done at random times within transactions.  Drive it off
relcache invalidation mechanism so that no special-case tests are needed.

Cache additional information in relcache entries for indexes (their pg_index
tuples and index-operator OIDs) to eliminate repeated lookups.  Also cache
index opclass info at the per-opclass level to avoid repeated lookups during
relcache load.

Generalize 'systable scan' utilities originally developed by Hiroshi,
move them into genam.c, use in a number of places where there was formerly
ugly code for choosing either heap or index scan.  In particular this allows
simplification of the logic that prevents infinite recursion between syscache
and relcache during startup: we can easily switch to heapscans in relcache.c
when and where needed to avoid recursion, so IndexScanOK becomes simpler and
does not need any expensive initialization.

Eliminate useless opening of a heapscan data structure while doing an indexscan
(this saves an mdnblocks call and thus at least one kernel call).
2002-02-19 20:11:20 +00:00
..
.cvsignore Add .cvsignore file so cvs doesn't complain if you have lex/yacc 1999-03-21 02:43:58 +00:00
analyze.c Require ownership permission for CREATE INDEX, per bug report. 2002-01-03 23:21:32 +00:00
gram.y Privileges on functions and procedural languages 2002-02-18 23:11:58 +00:00
keywords.c Privileges on functions and procedural languages 2002-02-18 23:11:58 +00:00
Makefile Make the yacc rules safe for parallel make. See discussion on pgsql-patches 2001-11-16 16:32:33 +00:00
parse_agg.c pgindent run on all C files. Java run to follow. initdb/regression 2001-10-25 05:50:21 +00:00
parse_clause.c pgindent run on all C files. Java run to follow. initdb/regression 2001-10-25 05:50:21 +00:00
parse_coerce.c pgindent run on all C files. Java run to follow. initdb/regression 2001-10-25 05:50:21 +00:00
parse_expr.c If the alternatives for a CASE construct all have the same typmod, 2001-11-12 20:05:24 +00:00
parse_func.c A bunch of changes aimed at reducing backend startup time... 2002-02-19 20:11:20 +00:00
parse_node.c Another pgindent run. Fixes enum indenting, and improves #endif 2001-10-28 06:26:15 +00:00
parse_oper.c A bunch of changes aimed at reducing backend startup time... 2002-02-19 20:11:20 +00:00
parse_relation.c New pgindent run with fixes suggested by Tom. Patch manually reviewed, 2001-11-05 17:46:40 +00:00
parse_target.c New pgindent run with fixes suggested by Tom. Patch manually reviewed, 2001-11-05 17:46:40 +00:00
parse_type.c pgindent run on all C files. Java run to follow. initdb/regression 2001-10-25 05:50:21 +00:00
parser.c New pgindent run with fixes suggested by Tom. Patch manually reviewed, 2001-11-05 17:46:40 +00:00
README cleanup 1998-08-23 14:43:46 +00:00
scan.l Change addlit() to not assume its input is null-terminated, so that we 2001-09-07 23:17:14 +00:00
scansup.c pgindent run on all C files. Java run to follow. initdb/regression 2001-10-25 05:50:21 +00:00

This directory does more than tokenize and parse SQL queries.  It also
creates Query structures for the various complex queries that is passed
to the optimizer and then executor.

parser.c	things start here
scan.l		break query into tokens
scansup.c	handle escapes in input
keywords.c	turn keywords into specific tokens
gram.y		parse the tokens and fill query-type-specific structures
analyze.c	handle post-parse processing for each query type
parse_clause.c	handle clauses like WHERE, ORDER BY, GROUP BY, ...
parse_coerce.c	used for coercing expressions of different types
parse_expr.c	handle expressions like col, col + 3, x = 3 or x = 4
parse_oper.c	handle operations in expressions
parse_agg.c	handle aggregates, like SUM(col1),  AVG(col2), ...
parse_func.c	handle functions, table.column and column identifiers
parse_node.c	create nodes for various structures
parse_target.c	handle the result list of the query
parse_relation.c support routines for tables and column handling
parse_type.c	support routines for type handling