Re: Make a SQL statement not run trigger

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Make a SQL statement not run trigger
Дата
Msg-id dcc563d10708211601n3bb0f9dald53423f3837f8849@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Make a SQL statement not run trigger  (Jon Collette <jon@etelos.com>)
Список 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 по дате отправления:

Предыдущее
От: Jon Collette
Дата:
Сообщение: Re: Make a SQL statement not run trigger
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: SELECT syntax synopsis: column_definition?