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
|
| Список | 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 по дате отправления: