From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Philippe Lang <philippe(dot)lang(at)attiksystem(dot)ch> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Disable trigger with Postgresql 7.4.x? |
Date: | 2004-08-24 11:20:39 |
Message-ID: | 200408241120.i7OBKdt25114@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Philippe Lang wrote:
> 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?
Same. We haven't added a better way yet.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Bruno Mueller | 2004-08-24 15:10:11 | refer to computed columns |
Previous Message | Richard Huxton | 2004-08-24 10:41:11 | Re: stored procedures and type of returned result. |