Re: disable a single trigger

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Laurette Cisneros <laurette(at)nextbus(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: disable a single trigger
Date: 2002-11-04 20:46:09
Message-ID: 1052.1036442769@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Laurette Cisneros <laurette(at)nextbus(dot)com> writes:
> What is the status of the tgenabled field in pg_trigger? It would be so
> nice to be able to disable just a single trigger on a table rather than
> having to disable all triggers. The docs say "not presently checked
> everywhere it should be, so disabling a trigger by setting this false
> does not work reliably".

I believe it does work for BEFORE triggers, but not AFTER triggers.
There was some question about when it should be checked for an AFTER
trigger (when the event is queued? Or fired?).

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-11-04 21:49:02 Re: Is my Internet connection slow
Previous Message Tom Lane 2002-11-04 20:40:04 Re: Is my Internet connection slow