Re: Persistent data per connection

Поиск
Список
Период
Сортировка
От Guy Rouillier
Тема Re: Persistent data per connection
Дата
Msg-id CC1CF380F4D70844B01D45982E671B2348E752@mtxexch01.add0.masergy.com
обсуждение исходный текст
Ответ на Persistent data per connection  (Jeff Amiel <jamiel@istreamimaging.com>)
Список pgsql-general
Jeff Amiel wrote:
> (heck, all cases) , the audit triggers themselves (when an
> update/insert/delete takes place) have to look to see if a temp table
> exists  to pull the user data from.  It wont exist in tese cases, but
> the triggers dont know this.....

Can't you catch the undefined_table exception in your trigger functions,
then create the tables if they don't exist?  We do that and it seems to
work fine.

--
Guy Rouillier


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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: TSearch2 FreeBSD
Следующее
От: John DeSoi
Дата:
Сообщение: Re: help w/ a little naive brainstorming ...