postgresql/src
Tom Lane f7166ce243 Check for pending trigger events on far end when dropping an FK constraint.
When dropping a foreign key constraint with ALTER TABLE DROP CONSTRAINT,
we refuse the drop if there are any pending trigger events on the named
table; this ensures that we won't remove the pg_trigger row that will be
consulted by those events.  But we should make the same check for the
referenced relation, else we might remove a due-to-be-referenced pg_trigger
row for that relation too, resulting in "could not find trigger NNN" or
"relation NNN has no triggers" errors at commit.  Per bug #14431 from
Benjie Gillam.  Back-patch to all supported branches.

Report: <20161124114911.6530.31200@wrigleys.postgresql.org>
2016-11-25 13:44:48 -05:00
..
backend Check for pending trigger events on far end when dropping an FK constraint. 2016-11-25 13:44:48 -05:00
bin Improve pg_dump/pg_restore --create --if-exists logic. 2016-11-17 14:59:26 -05:00
common Unlink static libraries before rebuilding them. 2015-03-01 13:06:33 -05:00
include Avoid pin scan for replay of XLOG_BTREE_VACUUM in all cases 2016-11-17 13:31:30 -03:00
interfaces Allow DOS-style line endings in ~/.pgpass files. 2016-11-15 16:17:19 -05:00
makefiles Consolidate makefile code for setting top_srcdir, srcdir and VPATH. 2015-07-30 20:49:22 -04:00
pl Rationalize and document pltcl's handling of magic ".tupno" array element. 2016-11-06 14:43:13 -05:00
port Stamp 9.4.10. 2016-10-24 16:12:53 -04:00
template AIX: Test the -qlonglong option before use. 2015-07-17 03:01:35 -04:00
test Check for pending trigger events on far end when dropping an FK constraint. 2016-11-25 13:44:48 -05:00
timezone More zic cleanup. 2016-11-06 10:46:21 -05:00
tools MSVC: Include pg_recvlogical in client-only install. 2016-09-19 14:27:13 -04:00
tutorial pgindent run for 9.4 2014-05-06 12:12:18 -04:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Install TAP test infrastructure so it's available for extension testing. 2016-09-23 15:50:00 -04:00
Makefile.global.in Make TAP test suites to work, when @INC does not contain current dir. 2016-10-07 22:00:28 +03:00
Makefile.shlib Make the AIX case of Makefile.shlib safe for parallel make. 2016-07-23 20:30:44 -04:00
nls-global.mk nls-global.mk: search build dir for source files, too 2016-06-07 18:55:18 -04:00
win32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00