X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id E4B1130F196 for ; Tue, 17 Jun 2003 17:59:40 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 63423-07 for ; Tue, 17 Jun 2003 14:59:30 -0300 (ADT) Received: from davinci.ethosmedia.com (unknown [209.10.40.251]) by svr1.postgresql.org (Postfix) with ESMTP id 0AB6F30F1F7 for ; Tue, 17 Jun 2003 14:59:30 -0300 (ADT) Received: from [66.219.92.2] (HELO temoku) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3128572; Tue, 17 Jun 2003 10:59:38 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: , Subject: Re: disabling triggers Date: Tue, 17 Jun 2003 10:58:44 -0700 User-Agent: KMail/1.4.3 References: <1164.219.65.230.103.1055871254.squirrel@mail.trade-india.com> In-Reply-To: <1164.219.65.230.103.1055871254.squirrel@mail.trade-india.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200306171058.44814.josh@agliodbs.com> X-Archive-Number: 200306/193 X-Sequence-Number: 13951 Mallah, > Is setting reltriggers=3D0 on pg_class an accepatble way of > disabling triggers on a table temporarily? Yes. pg_dump does this. > secondly is it worth having commands like > alter trigger inactive; > alter trigger active ; > i feel such commands exists on Oracle. No, since DROP TRIGGER ... CREATE TRIGGER does the same thing in Postgres. --=20 -Josh Berkus Aglio Database Solutions San Francisco