Re: trigger function in plpgsql (newbie)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: trigger function in plpgsql (newbie)
Дата
Msg-id 5768.1004290658@sss.pgh.pa.us
обсуждение исходный текст
Ответ на trigger function in plpgsql (newbie)  (Gunnar Lindholm <gunnar@gunix.mine.nu>)
Список pgsql-general
Gunnar Lindholm <gunnar@gunix.mine.nu> writes:
> Hello. I'm  a total newbie when it comes to plpgsql and trigger functions, but
> here is my code that does not work

You need a BEFORE INSERT trigger, not AFTER INSERT.  After the insertion
is too late to change the row that will be stored.

            regards, tom lane

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Problem with some function
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: trigger function in plpgsql (newbie)