Re: Enable/Disable Triggers

Поиск
Список
Период
Сортировка
От Vibhor Kumar
Тема Re: Enable/Disable Triggers
Дата
Msg-id 8447C170-AA20-4AD6-A2E6-90A21F042A2D@enterprisedb.com
обсуждение исходный текст
Ответ на Enable/Disable Triggers  ("Andy Chambers" <achambers@mcna.net>)
Список pgsql-general
On Mar 16, 2011, at 2:31 AM, Andy Chambers wrote:

> Is it a big no-no to enable/disable triggers by manually setting pg_trigger.tgenabled to 'D'?



Not recommended to do anything with catalog tables. At the place of this use following command:
ALTER TABLE <tablename> DISABLE TRIGGER [ trigger_name | ALL | USER ]

Thanks & Regards,
Vibhor Kumar
EnterpriseDB Corporation
The Enterprise PostgreSQL Company
vibhor.kumar@enterprisedb.com
Blog:http://vibhork.blogspot.com


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

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: Enable/Disable Triggers
Следующее
От: Alexander Farber
Дата:
Сообщение: Re: Copying data from one table to another - how to specify fields?