Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 93277475921 for ; Wed, 4 Dec 2002 23:54:46 -0500 (EST) Received: from lucidindia.net (unknown [61.11.73.194]) by postgresql.org (Postfix) with ESMTP id E52DC474E44 for ; Wed, 4 Dec 2002 23:54:42 -0500 (EST) Received: from a4005 ([192.168.1.18]) by lucidindia.net (8.11.6/8.11.6) with SMTP id gB54sZ523754; Thu, 5 Dec 2002 04:54:37 GMT Message-ID: <001a01c29c1a$695f4810$1201a8c0@a4005> From: "shreedhar" To: "Bhuvan A" , References: Subject: Re: Disabling triggers on a relation. Date: Thu, 5 Dec 2002 10:24:34 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/44 X-Sequence-Number: 6539 Hi Bhuvan & Mallah, Have you checked desabling of triggers. What reltriggers represent. If we set it as '0' to enable by what value it has to be updated. Sreedhar ----- Original Message ----- From: "Bhuvan A" To: Sent: Monday, December 02, 2002 3:16 PM Subject: Re: [ADMIN] Disabling triggers on a relation. > > > What is the correct method of temporarily > > disabling all triggers from a table? > > Disable: > db=# update pg_class set reltriggers = '0' where relname = 'your_table'; > > Enable: > db=# update pg_class set reltriggers = (select count(*) from pg_trigger > where pg_class.oid = tgrelid) where relname = 'your_table'; > > > > > > > also is there any command/function to show the > > trigger defination ? like pg_index_def does for indexes? > > > > Not sure. > > regards, > bhuvaneswaran > > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) >