Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 6C5EC9F997C for ; Tue, 21 Aug 2007 18:26:23 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 43762-08 for ; Tue, 21 Aug 2007 18:26:20 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from corp.etelos.com (corp.etelos.com [216.251.101.81]) by postgresql.org (Postfix) with ESMTP id ABFF99F997A for ; Tue, 21 Aug 2007 18:26:20 -0300 (ADT) Received: from [192.168.4.109] (unknown [216.251.108.82]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by corp.etelos.com (Postfix) with ESMTP id EC0CBFAC51 for ; Tue, 21 Aug 2007 14:26:17 -0700 (PDT) Message-ID: <46CB5876.80003@etelos.com> Date: Tue, 21 Aug 2007 14:26:14 -0700 From: Jon Collette User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Make a SQL statement not run trigger Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/173 X-Sequence-Number: 29111 Is it possible to run an insert,update, or delete and have it not launch a trigger like it normally would? For example could I set a value DONOTRUN = True; insert into contacts .... Where the trigger on contacts would call a function that would have an IF statment for that DONOTRUN value? Or is there just a global variable I could set to disable triggers and then reset it? And would that be a per connection variable? Thanks