Re: After Trigger

Поиск
Список
Период
Сортировка
От Alban Hertroys
Тема Re: After Trigger
Дата
Msg-id 4513A441.80401@magproductions.nl
обсуждение исходный текст
Ответ на After Trigger  (Bob Pawley <rjpawley@shaw.ca>)
Список pgsql-general
Bob Pawley wrote:
>
> I am seeking wording for a procedure that will initiate a trigger only
> after another trigger has completed its function. In this case I want to
> drop a table that is created and used by the first trigger.

You could just call a function from your trigger, or handle it inside
the trigger.

An alternative approach would be to use a permanent table, fill it
within your transaction and trunk it eventually. To other transactions
there'll never be any data in it, and you lose the overhead of creating
and dropping the table (replacing it by trunking...).

--
Alban Hertroys
alban@magproductions.nl

magproductions b.v.

T: ++31(0)534346874
F: ++31(0)534346876
M:
I: www.magproductions.nl
A: Postbus 416
    7500 AK Enschede

// Integrate Your World //

В списке pgsql-general по дате отправления:

Предыдущее
От: Matthias.Pitzl@izb.de
Дата:
Сообщение: Re: Strange database corruption with PostgreSQL 7.4.x o
Следующее
От: Ragnar
Дата:
Сообщение: Re: Can i switch to the use of persistent connections