postgresql/src/backend
Tom Lane 158b7fa6a3 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:12 -05:00
..
access Accept pg_upgraded tuples during multixact freezing 2014-01-10 18:03:18 -03:00
bootstrap Fix possible crashes due to using elog/ereport too early in startup. 2014-01-11 16:36:07 -05:00
catalog Accept pg_upgraded tuples during multixact freezing 2014-01-10 18:03:18 -03:00
commands Fix compute_scalar_stats() for case that all values exceed WIDTH_THRESHOLD. 2014-01-11 13:42:42 -05:00
executor Fix "cannot accept a set" error when only some arms of a CASE return a set. 2014-01-08 20:18:58 -05:00
foreign Update copyright for 2014 2014-01-07 16:05:30 -05:00
lib Update copyright for 2014 2014-01-07 16:05:30 -05:00
libpq Move username lookup functions from /port to /common 2014-01-10 18:03:28 -05:00
main Fix possible crashes due to using elog/ereport too early in startup. 2014-01-11 16:36:07 -05:00
nodes Update copyright for 2014 2014-01-07 16:05:30 -05:00
optimizer Update copyright for 2014 2014-01-07 16:05:30 -05:00
parser Disallow LATERAL references to the target table of an UPDATE/DELETE. 2014-01-11 19:03:12 -05:00
po Translation updates 2013-12-02 00:17:07 -05:00
port Update copyright for 2014 2014-01-07 16:05:30 -05:00
postmaster Fix possible crashes due to using elog/ereport too early in startup. 2014-01-11 16:36:07 -05:00
regex Update copyright for 2014 2014-01-07 16:05:30 -05:00
replication Update copyright for 2014 2014-01-07 16:05:30 -05:00
rewrite Update copyright for 2014 2014-01-07 16:05:30 -05:00
snowball Update copyright for 2014 2014-01-07 16:05:30 -05:00
storage We don't need to include pg_sema.h in s_lock.h anymore. 2014-01-08 20:58:22 -05:00
tcop Fix possible crashes due to using elog/ereport too early in startup. 2014-01-11 16:36:07 -05:00
tsearch Update copyright for 2014 2014-01-07 16:05:30 -05:00
utils Fix possible crashes due to using elog/ereport too early in startup. 2014-01-11 16:36:07 -05:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
Makefile Update copyright for 2014 2014-01-07 16:05:30 -05:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
nls.mk Add libpgcommon to backend gettext source files 2013-10-19 13:49:05 -04:00