Re: Make a SQL statement not run trigger - Mailing list pgsql-sql

From Scott Marlowe
Subject Re: Make a SQL statement not run trigger
Date
Msg-id dcc563d10708211601n3bb0f9dald53423f3837f8849@mail.gmail.com
Whole thread Raw
In response to Re: Make a SQL statement not run trigger  (Jon Collette <jon@etelos.com>)
List pgsql-sql
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.


pgsql-sql by date:

Previous
From: Jon Collette
Date:
Subject: Re: Make a SQL statement not run trigger
Next
From: Michael Glaesemann
Date:
Subject: Re: SELECT syntax synopsis: column_definition?