Re: Triggering a function on table overwrite

Поиск
Список
Период
Сортировка
От Misa Simic
Тема Re: Triggering a function on table overwrite
Дата
Msg-id 1789181104245002529@iso-8859-1msgid
обсуждение исходный текст
Ответ на Triggering a function on table overwrite  ("Bob Pawley" <rjpawley@shaw.ca>)
Список pgsql-general
Hi Bob,

I guess with "overwrite the table" you mean to fill some columns with your values in trigger...

If that is the case, in docs is example:

http://www.postgresql.org/docs/8.1/static/plpgsql-trigger.html

Kind Regards,

Misa

Sent from my Windows Phone

From: Bob Pawley
Sent: 06/02/2012 06:57
To: Postgresql
Subject: [GENERAL] Triggering a function on table overwrite

Hi
 
Normally when I need to run a function during an insert I make it a trigger function of that table.
 
However, in this case, I need to overwrite the table with which the trigger is attached.
 
I would appreciate any suggestions on how to do this.
 
Bob

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

Предыдущее
От: Andreas Kretschmer
Дата:
Сообщение: Re: Backup database remotely
Следующее
От: Misa Simic
Дата:
Сообщение: Re: How to create crosstab with 3 values in every crosstab column