X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id A1353D1EBCB for ; Tue, 23 Mar 2004 21:38:27 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 18767-02 for ; Tue, 23 Mar 2004 17:38:27 -0400 (AST) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 94F83D1D2AC for ; Tue, 23 Mar 2004 17:38:24 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id i2NLcQD03588; Tue, 23 Mar 2004 16:38:26 -0500 (EST) From: Bruce Momjian Message-Id: <200403232138.i2NLcQD03588@candle.pha.pa.us> Subject: Re: Disable Trigger In-Reply-To: <686B4177-7D0B-11D8-AD18-000A95AA0B44@cognitive.com> To: Charles Haron Date: Tue, 23 Mar 2004 16:38:26 -0500 (EST) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/306 X-Sequence-Number: 12875 Charles Haron wrote: > Is there a way to temporarily disable a trigger without dropping and > re-adding it? You can update the sytem tables by setting the number of triggers to zero on the table. See the PostgreSQL cookbook for examples. We have a TODO item to get this implemented cleanly. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073