Re: Disable Triggers

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Disable Triggers
Дата
Msg-id 21964.1207761150@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Disable Triggers  (Terry Lee Tucker <terry@chosen-ones.org>)
Ответы Re: Disable Triggers
Список pgsql-general
Terry Lee Tucker <terry@chosen-ones.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

В списке pgsql-general по дате отправления:

Предыдущее
От: Alban Hertroys
Дата:
Сообщение: Re: Quoting table/column names vs performance
Следующее
От: Jozef Ševčík
Дата:
Сообщение: Re: Quoting table/column names vs performance