postgresql/src/backend/parser
Tom Lane 66888f7424 Expose more cursor-related functionality in SPI: specifically, allow
access to the planner's cursor-related planning options, and provide new
FETCH/MOVE routines that allow access to the full power of those commands.
Small refactoring of planner(), pg_plan_query(), and pg_plan_queries()
APIs to make it convenient to pass the planning options down from SPI.

This is the core-code portion of Pavel Stehule's patch for scrollable
cursor support in plpgsql; I'll review and apply the plpgsql changes
separately.
2007-04-16 01:14:58 +00:00
..
.cvsignore Add .cvsignore file so cvs doesn't complain if you have lex/yacc 1999-03-21 02:43:58 +00:00
Makefile Re-introduce the yylex filter function formerly used to support UNION 2006-05-27 17:38:46 +00:00
README cleanup 1998-08-23 14:43:46 +00:00
analyze.c First phase of plan-invalidation project: create a plan cache management 2007-03-13 00:33:44 +00:00
gram.y Expose more cursor-related functionality in SPI: specifically, allow 2007-04-16 01:14:58 +00:00
keywords.c Support enum data types. Along the way, use macros for the values of 2007-04-02 03:49:42 +00:00
parse_agg.c Wording cleanup for error messages. Also change can't -> cannot. 2007-02-01 19:10:30 +00:00
parse_clause.c Wording cleanup for error messages. Also change can't -> cannot. 2007-02-01 19:10:30 +00:00
parse_coerce.c Support enum data types. Along the way, use macros for the values of 2007-04-02 03:49:42 +00:00
parse_expr.c Support enum data types. Along the way, use macros for the values of 2007-04-02 03:49:42 +00:00
parse_func.c Fix array coercion expressions to ensure that the correct volatility is 2007-03-27 23:21:12 +00:00
parse_node.c Fix up the remaining places where the expression node structure would lose 2007-03-17 00:11:05 +00:00
parse_oper.c Support enum data types. Along the way, use macros for the values of 2007-04-02 03:49:42 +00:00
parse_relation.c Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
parse_target.c Implement XMLSERIALIZE for real. Analogously, make the xml to text cast 2007-02-03 14:06:56 +00:00
parse_type.c Support enum data types. Along the way, use macros for the values of 2007-04-02 03:49:42 +00:00
parser.c Support ORDER BY ... NULLS FIRST/LAST, and add ASC/DESC/NULLS FIRST/NULLS LAST 2007-01-09 02:14:16 +00:00
scan.l Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
scansup.c Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00

README

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