From: Philippe Lang <philippe.lang@attiksystem.ch>
To: pgsql-sql@postgresql.org
Subject: Disable trigger with Postgresql 7.4.x?
Date: Tue, 24 Aug 2004 09:41:58 +0200
Message-ID: <6C0CF58A187DA5479245E0830AF84F420803D3@poweredge.attiksystem.ch> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: philippe.lang@attiksystem.ch
Subject: Re: Disable trigger with Postgresql 7.4.x?
In-Reply-To: <6C0CF58A187DA5479245E0830AF84F420803D3@poweredge.attiksystem.ch>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox