Re: persistent portals/cursors (between transactions)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: persistent portals/cursors (between transactions)
Дата
Msg-id 8440.1011818848@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: persistent portals/cursors (between transactions)  (Florian Wunderlich <fwunderlich@devbrain.de>)
Ответы Re: persistent portals/cursors (between transactions)  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
Список pgsql-general
Florian Wunderlich <fwunderlich@devbrain.de> writes:
> Of course, never thought of that. But why does the lock (AccessShareLock
> from what I see) keep UPDATE (that acquires a RowExclusiveLock from what
> I see) from running?

It shouldn't do that.  Can you provide an example?

> I'd really like to have persistent insensitive cursors,

Seems a lot easier to just select the data you want into a temp table.
You *cannot* expect deleted data in a table to hang around for you after
you close your transaction --- there is nothing to protect it from being
VACUUMed, for example.

            regards, tom lane

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

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: persistent portals/cursors (between transactions)
Следующее
От: "Hiroshi Inoue"
Дата:
Сообщение: Re: persistent portals/cursors (between transactions)