Re: Disabling triggers on a relation.

Поиск
Список
Период
Сортировка
От Bhuvan A
Тема Re: Disabling triggers on a relation.
Дата
Msg-id Pine.LNX.4.44.0212021514010.1504-100000@Bhuvan.bksys.co.in
обсуждение исходный текст
Ответ на Disabling triggers on a relation.  ("Rajesh Kumar Mallah." <mallah@trade-india.com>)
Список pgsql-admin
> What is the correct method of temporarily
> disabling all triggers from a table?

Disable:
db=# update pg_class set reltriggers = '0' where relname = 'your_table';

Enable:
db=# update pg_class set reltriggers = (select count(*) from pg_trigger
where pg_class.oid = tgrelid) where relname = 'your_table';

>
>
> also is there any command/function  to show the
> trigger defination ? like pg_index_def does for indexes?
>

Not sure.

regards,
bhuvaneswaran


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

Предыдущее
От: "yudha"
Дата:
Сообщение: Unable to automaticly load Postmaster.
Следующее
От: "Rajesh Kumar Mallah."
Дата:
Сообщение: Re: Unable to automaticly load Postmaster.