Disable trigger with Postgresql 7.4.x? - Mailing list pgsql-sql

From Philippe Lang
Subject Disable trigger with Postgresql 7.4.x?
Date
Msg-id 6C0CF58A187DA5479245E0830AF84F420803D3@poweredge.attiksystem.ch
Whole thread Raw
Responses Re: Disable trigger with Postgresql 7.4.x?
List 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 by date:

Previous
From: sad
Date:
Subject: Re: surrogate key or not?
Next
From: Patrice OLIVER
Date:
Subject: stored procedures and type of returned result.