Re: triggers and plpgsql

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: triggers and plpgsql
Дата
Msg-id Pine.BSF.4.21.0108030739250.15948-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на triggers and plpgsql  (Jakub Ouhrabka <jouh8664@ss1000.ms.mff.cuni.cz>)
Список pgsql-general
On Fri, 3 Aug 2001, Jakub Ouhrabka wrote:

> hi,
> 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. can anyone explain me why i'm getting these
> results, please?

AFAICS the after triggers are going to be delayed until the outer
statement is completing.  That would means when the select
foo() is finishing up, the after triggers run, so between the delete and
select in the function, the trigger hasn't been called yet.



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

Предыдущее
От: Jakub Ouhrabka
Дата:
Сообщение: triggers and plpgsql
Следующее
От: Tom Lane
Дата:
Сообщение: Re: triggers and plpgsql