Re: disable/enable trigger and transaction - Mailing list pgsql-general

From Grzegorz Jaśkiewicz
Subject Re: disable/enable trigger and transaction
Date
Msg-id 2f4958ff0811170200y82be766qc29611e55a406611@mail.gmail.com
Whole thread Raw
In response to disable/enable trigger and transaction  (Peter Billen <peter@clueless.be>)
List pgsql-general
On Sun, Nov 16, 2008 at 12:39 PM, Peter Billen <peter@clueless.be> wrote:
Hi all,

Is the instruction 'ALTER TABLE x ENABLE/DISABLE TRIGGER y' part of the current transaction? That is, say that there are two ongoing transactions, T1 and T2. Is the trigger y still enabled in transaction T2 if it's disabled in transaction T1?
yes, but this will lock table operations in other transactions that would otherwise use that trigger. So be careful with it.
 

pgsql-general by date:

Previous
From: "Mr. John"
Date:
Subject: Re: Problem with pg_restore into new database
Next
From: Richard Huxton
Date:
Subject: Re: Problem with pg_restore into new database