Re: Disable Triggers

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Terry Lee Tucker <terry(at)chosen-ones(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Disable Triggers
Date: 2008-04-09 17:12:30
Message-ID: 21964.1207761150@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Terry Lee Tucker <terry(at)chosen-ones(dot)org> writes:
> My question is: When tgenabled is set to "D", how does that setting interact
> with session_replication_role and, is there a way to use tgenabled with a
> setting of "D" to prevent a particular trigger from firing. Using ALTER TABLE
> to disable the trigger won't work because the whole table is locked during
> the transaction and I only want the disabled trigger to apply to the current
> transaction in the current session.

I'll bet you're missing a relcache flush operation. I don't think an
update on pg_trigger will cause that by itself.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jozef Ševčík 2008-04-09 17:19:29 Re: Quoting table/column names vs performance
Previous Message Alban Hertroys 2008-04-09 17:11:57 Re: Quoting table/column names vs performance