postgresql/contrib/spi
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
..
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
autoinc.c Fix sloppy usage of TRIGGER_FIRED_BEFORE/TRIGGER_FIRED_AFTER. 2010-10-08 13:27:31 -04:00
autoinc.example General function for SERIAL/IDENTITY/AUTOINCREMENT feature. 1997-10-02 18:01:57 +00:00
autoinc.sql.in Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
insert_username.c Fix sloppy usage of TRIGGER_FIRED_BEFORE/TRIGGER_FIRED_AFTER. 2010-10-08 13:27:31 -04:00
insert_username.example Remove extra newlines at end and beginning of files, add missing newlines 2010-08-19 05:57:36 +00:00
insert_username.sql.in Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
moddatetime.c Fix sloppy usage of TRIGGER_FIRED_BEFORE/TRIGGER_FIRED_AFTER. 2010-10-08 13:27:31 -04:00
moddatetime.example Remove the last traces of datatypes datetime and timespan. 2002-05-03 04:11:08 +00:00
moddatetime.sql.in Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
refint.c Fix sloppy usage of TRIGGER_FIRED_BEFORE/TRIGGER_FIRED_AFTER. 2010-10-08 13:27:31 -04:00
refint.example README for refint.c and example of using. 1997-09-12 02:41:15 +00:00
refint.sql.in Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
timetravel.c Fix sloppy usage of TRIGGER_FIRED_BEFORE/TRIGGER_FIRED_AFTER. 2010-10-08 13:27:31 -04:00
timetravel.example Here is 4 file in tgz: 2003-07-27 04:51:45 +00:00
timetravel.sql.in Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00