diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2014-01-11 19:03:12 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2014-01-11 19:03:12 -0500 |
commit | 158b7fa6a34006bdc70b515e14e120d3e896589b (patch) | |
tree | 4cc53f3251ed648fa2aaa4adc8afad52b7b1629b /src/backend/executor/nodeModifyTable.c | |
parent | 910bac5953012198e210848660ea31f27ab08abc (diff) | |
download | postgresql-158b7fa6a34006bdc70b515e14e120d3e896589b.tar.gz postgresql-158b7fa6a34006bdc70b515e14e120d3e896589b.zip |
Disallow LATERAL references to the target table of an UPDATE/DELETE.
On second thought, commit 0c051c90082da0b7e5bcaf9aabcbd4f361137cdc 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.
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions