Re: disable/enable trigger and transaction

Поиск
Список
Период
Сортировка
От Grzegorz Jaśkiewicz
Тема Re: disable/enable trigger and transaction
Дата
Msg-id 2f4958ff0811170200y82be766qc29611e55a406611@mail.gmail.com
обсуждение исходный текст
Ответ на disable/enable trigger and transaction  (Peter Billen <peter@clueless.be>)
Список 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 по дате отправления:

Предыдущее
От: "Mr. John"
Дата:
Сообщение: Re: Problem with pg_restore into new database
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Problem with pg_restore into new database