From: Scott Marlowe <scott.marlowe@gmail.com>
To: Jon Collette <jon@etelos.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Make a SQL statement not run trigger
Date: Tue, 21 Aug 2007 18:01:24 -0500
Message-ID: <dcc563d10708211601n3bb0f9dald53423f3837f8849@mail.gmail.com> (raw)
In-Reply-To: <46CB6C0E.7070508@etelos.com>
References: <46CB5876.80003@etelos.com>
<dcc563d10708211507r351a46efxc758168f6032ab3f@mail.gmail.com>
<46CB6C0E.7070508@etelos.com>
On 8/21/07, Jon Collette <jon@etelos.com> wrote:
> I think this will work for what I need. I have been messing around with
> this using select into
>
> /select True as donothing into temporary table table_trigger_name;
> then run statement that I want to be ignored
> /
> The trigger would have a select upon the table_trigger_name to determine
> if it should run or not. I am having issues catching the exception when
> the table is not found.
>
Note that if you use temp tables much, you need to make sure that
autovacuum is up and running (or vacuum regularly) to keep the system
catalogs from getting bloated. Just FYI.
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: scott.marlowe@gmail.com, jon@etelos.com
Subject: Re: Make a SQL statement not run trigger
In-Reply-To: <dcc563d10708211601n3bb0f9dald53423f3837f8849@mail.gmail.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