postgresql/src/backend/utils
Tom Lane caaf2e8469 Fix sloppy usage of TRIGGER_FIRED_BEFORE/TRIGGER_FIRED_AFTER.
Various places were testing TRIGGER_FIRED_BEFORE() where what they really
meant was !TRIGGER_FIRED_AFTER(), or vice versa.  This needs to be cleaned
up because there are about to be more than two possible states.

We might want to note this in the 9.1 release notes as something for
trigger authors to double-check.

For consistency's sake I also changed some places that assumed that
TRIGGER_FIRED_FOR_ROW and TRIGGER_FIRED_FOR_STATEMENT are necessarily
mutually exclusive; that's not in immediate danger of breaking, but
it's still sloppier than it should be.

Extracted from Dean Rasheed's patch for triggers on views.  I'm committing
this separately since it's an identifiable separate issue, and is the
only reason for the patch to touch most of these particular files.
2010-10-08 13:27:31 -04:00
..
adt Fix sloppy usage of TRIGGER_FIRED_BEFORE/TRIGGER_FIRED_AFTER. 2010-10-08 13:27:31 -04:00
cache Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
error Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
fmgr Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
hash Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
init Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
mb Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
misc Add "(change requires restart)" note to some postgresql.conf parameters. 2010-09-27 09:14:14 -04:00
mmgr Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
resowner Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
sort Eliminate some repetitive coding in tuplesort.c. 2010-10-07 20:32:21 -04:00
time Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
Gen_dummy_probes.sed Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
Gen_fmgrtab.pl Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
probes.d Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00