Re: "disappearing" rows in temp table, in recursing trigger

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: "disappearing" rows in temp table, in recursing trigger
Дата
Msg-id 2702.1230677714@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: "disappearing" rows in temp table, in recursing trigger  ("Eric Worden" <worden.eric@gmail.com>)
Список pgsql-general
"Eric Worden" <worden.eric@gmail.com> writes:
> Thank you this helped me fix it.  I moved the "create temporary
> table..." statement to the outermost calling function and changed it
> from STABLE to VOLATILE.  I'm not sure which change made the
> difference -- I had to move the create table statement for an
> additional reason.

Probably the latter.  STABLE functions generally use the snapshot of the
calling query, which means that on successive calls they'll see the same
state of the database.

            regards, tom lane

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

Предыдущее
От: "Derek Liang"
Дата:
Сообщение: return X number of refcursors from a function
Следующее
От: Tuan Hoang Anh
Дата:
Сообщение: How to use index in strpos function