Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 3D941476484 for ; Thu, 5 Dec 2002 07:29:49 -0500 (EST) Received: from rtlocal.trade-india.com (mail-relay.trade-india.com [203.196.129.235]) by postgresql.org (Postfix) with SMTP id C480347608D for ; Thu, 5 Dec 2002 07:29:05 -0500 (EST) Received: (qmail 18460 invoked from network); 5 Dec 2002 12:19:55 -0000 Received: from unknown (HELO system67.trade-india-local.com) (192.168.0.67) by infocom-236-129-del.trade-india.com with SMTP; 5 Dec 2002 12:19:55 -0000 From: "Rajesh Kumar Mallah." Organization: Infocom Network Limited. To: "shreedhar" , "Bhuvan A" , Subject: Re: Disabling triggers on a relation. Date: Thu, 5 Dec 2002 18:03:24 +0530 User-Agent: KMail/1.5 References: <001a01c29c1a$695f4810$1201a8c0@a4005> In-Reply-To: <001a01c29c1a$695f4810$1201a8c0@a4005> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200212051803.24698.mallah@trade-india.com> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/47 X-Sequence-Number: 6542 by total no of triggers that relation has, which is got from a subselct on pg_triggers On Thursday 05 December 2002 10:24 am, shreedhar wrote: > 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) > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly -- Rajesh Kumar Mallah, Project Manager (Development) Infocom Network Limited, New Delhi phone: +91(11)6152172 (221) (L) ,9811255597 (M) Visit http://www.trade-india.com , India's Leading B2B eMarketplace.