Re: triggers and plpgsql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: triggers and plpgsql
Дата
Msg-id 20365.996850282@sss.pgh.pa.us
обсуждение исходный текст
Ответ на triggers and plpgsql  (Jakub Ouhrabka <jouh8664@ss1000.ms.mff.cuni.cz>)
Список pgsql-general
Jakub Ouhrabka <jouh8664@ss1000.ms.mff.cuni.cz> writes:
> i'm getting strange results when executing the code below. i would expect
> that li_count in function foo and the select after calling this function
> should return same values.

An AFTER trigger runs at the end of the transaction, so it hasn't fired
yet at the time your function foo looks at the table.  Perhaps you want
a BEFORE trigger instead.

            regards, tom lane

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: triggers and plpgsql
Следующее
От: teg@redhat.com (Trond Eivind Glomsrød)
Дата:
Сообщение: Re: HELP! BUG? pg_dump mucks up grant/revoke