pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jon Collette <jon@etelos.com>
To: pgsql-sql@postgresql.org
Subject: Make a SQL statement not run trigger
Date: Tue, 21 Aug 2007 14:26:14 -0700
Message-ID: <46CB5876.80003@etelos.com> (raw)

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



view thread (8+ messages)  latest in thread

Message-ID: <46CB5876.80003@etelos.com>
Permalink:  ../46CB5876.80003@etelos.com/
Also on:    postgresql.org/message-id/46CB5876.80003@etelos.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jon@etelos.com
  Subject: Re: Make a SQL statement not run trigger
  In-Reply-To: <46CB5876.80003@etelos.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox