Re: disable/enable trigger and transaction

From: Grzegorz Jaśkiewicz <gryzman(at)gmail(dot)com>
To: "Peter Billen" <peter(at)clueless(dot)be>
Cc: "PG-General Mailing List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: disable/enable trigger and transaction
Date: 2008-11-17 10:00:45
Message-ID: 2f4958ff0811170200y82be766qc29611e55a406611@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Nov 16, 2008 at 12:39 PM, Peter Billen <peter(at)clueless(dot)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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2008-11-17 10:08:00 Re: Problem with pg_restore into new database
Previous Message Mr. John 2008-11-17 09:47:03 Re: Problem with pg_restore into new database