postgresql/src
Tom Lane 8d8ff5f7db Improve error message for rejecting RETURNING clauses with dropped columns.
This error message was written with only ON SELECT rules in mind, but since
then we also made RETURNING-clause targetlists go through the same logic.
This means that you got a rather off-topic error message if you tried to
add a rule with RETURNING to a table having dropped columns.  Ideally we'd
just support that, but some preliminary investigation says that it might be
a significant amount of work.  Seeing that Nicklas Avén's complaint is the
first one we've gotten about this in the ten years or so that the code's
been like that, I'm unwilling to put much time into it.  Instead, improve
the error report by issuing a different message for RETURNING cases, and
revise the associated comment based on this investigation.

Discussion: 1456176604.17219.9.camel@jordogskog.no
2016-02-29 19:11:38 -05:00
..
backend Improve error message for rejecting RETURNING clauses with dropped columns. 2016-02-29 19:11:38 -05:00
bin Move some code from RewindTest into PostgresNode 2016-02-26 13:24:22 -03:00
common Cosmetic improvements in new config_info code. 2016-02-21 11:38:24 -05:00
include Add new FDW API to test for parallel-safety. 2016-02-26 16:14:46 +05:30
interfaces Respect TEMP_CONFIG when pg_regress_check and friends are called 2016-02-27 12:28:21 -05:00
makefiles Fix typos in comments and doc 2016-01-28 16:47:36 +09:00
pl Make plpython cope with funny characters in function names. 2016-02-16 21:08:15 -05:00
port Add new system view, pg_config 2016-02-17 09:12:06 -08:00
template Remove some remains from Alpha support removal 2015-10-29 16:40:14 -04:00
test Minor tweaks for new src/test/recovery 2016-02-29 18:16:59 -03:00
timezone Update time zone data files to tzdata release 2016a. 2016-02-05 10:59:09 -05:00
tools Minor tweaks for new src/test/recovery 2016-02-29 18:16:59 -03:00
tutorial Update copyright for 2016 2016-01-02 13:33:40 -05:00
.gitignore
bcc32.mak
DEVELOPERS
Makefile Create libpgcommon, and move pg_malloc et al to it 2013-02-12 11:21:05 -03:00
Makefile.global.in Respect TEMP_CONFIG when pg_regress_check and friends are called 2016-02-27 12:28:21 -05:00
Makefile.shlib AIX: Link TRANSFORM modules with their dependencies. 2015-07-15 21:00:26 -04:00
nls-global.mk Setup error context callback for transaction lock waits 2014-03-19 15:10:36 -03:00
win32.mak