postgresql/src/backend/parser
Tom Lane 82a91c7bd3 Prevent failure when RowExpr or XmlExpr is parse-analyzed twice.
transformExpr() is required to cope with already-transformed expression
trees, for various ugly-but-not-quite-worth-cleaning-up reasons.  However,
some of its newer subroutines hadn't gotten the memo.  This accounts for
bug #7763 from Norbert Buchmuller: transformRowExpr() was overwriting the
previously determined type of a RowExpr during CREATE TABLE LIKE INCLUDING
INDEXES.  Additional investigation showed that transformXmlExpr had the
same kind of problem, but all the other cases seem to be safe.

Andres Freund and Tom Lane
2012-12-23 14:07:47 -05:00
..
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:08 +02:00
analyze.c Check for stack overflow in transformSetOperationTree(). 2012-11-11 19:56:32 -05:00
gram.y Prevent failure when RowExpr or XmlExpr is parse-analyzed twice. 2012-12-23 14:07:47 -05:00
keywords.c Add comments about kwlookup.c expectations 2009-03-08 16:53:30 +00:00
kwlookup.c Add comments about kwlookup.c expectations 2009-03-08 16:53:30 +00:00
Makefile Separate the key word list that lived in keywords.c into a new header file 2009-03-07 00:13:58 +00:00
parse_agg.c 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
parse_clause.c Make FOR UPDATE/SHARE in the primary query not propagate into WITH queries; 2009-10-27 17:11:30 +00:00
parse_coerce.c Fix IsBinaryCoercible to not confuse a cast using in/out functions 2010-03-04 09:40:01 +00:00
parse_cte.c Fix WITH attached to a nested set operation (UNION/INTERSECT/EXCEPT). 2012-07-31 17:56:42 -04:00
parse_expr.c Prevent failure when RowExpr or XmlExpr is parse-analyzed twice. 2012-12-23 14:07:47 -05:00
parse_func.c Further fixes to the pg_get_expr() security fix in back branches. 2010-09-25 16:02:32 -04:00
parse_node.c 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
parse_oper.c Improved version of patch to protect pg_get_expr() against misuse: 2010-07-30 17:56:59 +00:00
parse_relation.c Prevent parser from believing that views have system columns. 2012-10-24 14:54:12 -04:00
parse_target.c 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
parse_type.c 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
parse_utilcmd.c Prevent CREATE TABLE LIKE/INHERITS from (mis) copying whole-row Vars. 2012-06-30 16:44:14 -04:00
parser.c 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
README Small wording improvements for source code READMEs. 2008-04-09 01:00:46 +00:00
scan.l Make new complaint about unsafe Unicode literals include an error location. 2009-05-05 21:09:23 +00:00
scansup.c Work around a subtle portability problem in use of printf %s format. 2010-05-08 16:40:03 +00:00

$PostgreSQL: pgsql/src/backend/parser/README,v 1.10 2008/04/09 01:00:46 momjian Exp $

Parser
======

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

parser.c	things start here
scan.l		break query into tokens
scansup.c	handle escapes in input strings
keywords.c	turn keywords into specific tokens
gram.y		parse the tokens and fill query-type-specific structures
analyze.c	top level of parse analysis for optimizable queries
parse_clause.c	handle clauses like WHERE, ORDER BY, GROUP BY, ...
parse_coerce.c	handle coercing expressions to different data types
parse_expr.c	handle expressions like col, col + 3, x = 3 or x = 4
parse_oper.c	handle operators 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 data type handling
parse_utilcmd.c	parse analysis for utility commands (done at execution time)