Re: Disable Trigger

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Charles Haron <charles(dot)haron(at)cognitive(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Disable Trigger
Date: 2004-03-23 21:38:26
Message-ID: 200403232138.i2NLcQD03588@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Charles Haron wrote:
> Is there a way to temporarily disable a trigger without dropping and
> re-adding it?

You can update the sytem tables by setting the number of triggers to
zero on the table. See the PostgreSQL cookbook for examples. We have a
TODO item to get this implemented cleanly.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Hemapriya 2004-03-23 21:46:44 process list
Previous Message CoL 2004-03-23 21:37:20 Re: Disable Trigger