Disable trigger with Postgresql 7.4.x?

From: "Philippe Lang" <philippe(dot)lang(at)attiksystem(dot)ch>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: Disable trigger with Postgresql 7.4.x?
Date: 2004-08-24 07:41:58
Message-ID: 6C0CF58A187DA5479245E0830AF84F420803D3@poweredge.attiksystem.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Patrice OLIVER 2004-08-24 08:39:24 stored procedures and type of returned result.
Previous Message sad 2004-08-24 04:31:57 Re: surrogate key or not?