Disable trigger with Postgresql 7.4.x?

Поиск
Список
Период
Сортировка
От Philippe Lang
Тема Disable trigger with Postgresql 7.4.x?
Дата
Msg-id 6C0CF58A187DA5479245E0830AF84F420803D3@poweredge.attiksystem.ch
обсуждение исходный текст
Ответы Re: Disable trigger with Postgresql 7.4.x?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-sql
Hello,

I read in an old thread

http://archives.postgresql.org/pgsql-hackers/2002-08/msg00079.php

... that starting with Postgresql 7.3, there is a new way to disable and
enable triggers in Postgresql. The "old" way was:

update pg_class set reltriggers=0 where relname = 'YOUR_TABLE_NAME';
update pg_class set reltriggers = count(*) from pg_trigger where
pg_class.oid=tgrelid and relname='YOUR_TABLE_NAME';

What is the recommended way of doing that under Postgresql 7.4.x?

Thanks

Philippe Lang


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

Предыдущее
От: sad
Дата:
Сообщение: Re: surrogate key or not?
Следующее
От: Patrice OLIVER
Дата:
Сообщение: stored procedures and type of returned result.