Attached is a minor patch to make BEFORE DELETE triggers honour tgenabled
properly.

I know that we cannot, currently, use this feature through a DDL command
but just in case someone is updating the catalogs to do it and since it is
necessary in order to implement disabling of triggers, I thought I'd send
it in.

Gavin
Index: src/backend/commands/trigger.c
===================================================================
RCS file: /usr/local/cvsroot/pgsql-server/src/backend/commands/trigger.c,v
retrieving revision 1.166
diff -r1.166 trigger.c
1351a1352
>       bool            ret;
1367a1369
>       ret = true;
1379a1382,1383
>               {
>                       ret = false;
1380a1385
>               }
1386c1391
<       return (newtuple == NULL) ? false : true;
---
>       return (ret);
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to [EMAIL PROTECTED] so that your
      message can get through to the mailing list cleanly

Reply via email to