postgresql/src/include/parser
Tom Lane 27ff4cfe76 Disallow LATERAL references to the target table of an UPDATE/DELETE.
On second thought, commit 0c051c9008 was
over-hasty: rather than allowing this case, we ought to reject it for now.
That leaves the field clear for a future feature that allows the target
table to be re-specified in the FROM (or USING) clause, which will enable
left-joining the target table to something else.  We can then also allow
LATERAL references to such an explicitly re-specified target table.
But allowing them right now will create ambiguities or worse for such a
feature, and it isn't something we documented 9.3 as supporting.

While at it, add a convenience subroutine to avoid having several copies
of the ereport for disalllowed-LATERAL-reference cases.
2014-01-11 19:03:15 -05:00
..
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
analyze.h Fix crash in error report of invalid tuple lock 2013-08-02 13:37:40 -04:00
gramparse.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
keywords.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
kwlist.h Add a materialized view relations. 2013-03-03 18:23:31 -06:00
parse_agg.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
parse_clause.h Clean up the mess around EXPLAIN and materialized views. 2013-04-12 19:25:31 -04:00
parse_coerce.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
parse_collate.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
parse_cte.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
parse_expr.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
parse_func.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
parse_node.h Disallow LATERAL references to the target table of an UPDATE/DELETE. 2014-01-11 19:03:15 -05:00
parse_oper.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
parse_param.h Clean up the mess around EXPLAIN and materialized views. 2013-04-12 19:25:31 -04:00
parse_relation.h pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
parse_target.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
parse_type.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
parse_utilcmd.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
parser.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
parsetree.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
scanner.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
scansup.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00