Re: bug w/ cursors and savepoints

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: bug w/ cursors and savepoints
Дата
Msg-id 1106783747.3226.18.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Re: bug w/ cursors and savepoints  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Ответы Re: bug w/ cursors and savepoints  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wed, 2005-01-26 at 12:02 -0300, Alvaro Herrera wrote:
> > The policy will now be: cursor creation is transaction, but cursor state 
> > modifications (FETCH) are non-transactional -- right? I wonder if it 
> > wouldn't be more consistent to make cursor deletion (CLOSE) 
> > transactional as well -- so that a CLOSE in an aborted subtransaction 
> > would not actually destroy the cursor.
> 
> Hmm ... not sure how hard that is.

Would it work to record the sub XID of the deleting subtxn on CLOSE, and
then consider whether to "really" do the deletion when the subtxn
commits/aborts?

-Neil




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: bug w/ cursors and savepoints
Следующее
От: Tom Lane
Дата:
Сообщение: Re: bug w/ cursors and savepoints