Re: bug w/ cursors and savepoints

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: bug w/ cursors and savepoints
Дата
Msg-id 20050125170623.GA1581@dcc.uchile.cl
обсуждение исходный текст
Ответ на Re: bug w/ cursors and savepoints  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: bug w/ cursors and savepoints  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: bug w/ cursors and savepoints  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Список pgsql-hackers
On Tue, Jan 25, 2005 at 02:40:51AM -0500, Tom Lane wrote:
> Neil Conway <neilc@samurai.com> writes:
> > Someone at Fujitsu pointed out the following bug in 8.0:
> > begin;
> > savepoint x;
> > create table abc (a int);
> > insert into abc values (5);
> > declare foo cursor for select * from abc;
> > rollback to x;
> > fetch from foo; -- hits an Assert()
> 
> Offhand I'd say this should draw a "no such cursor as foo" error.
> I'm too tired to look into why foo still exists after the rollback...

At this point, gdb says that the portal is in PORTAL_READY state.  The
code says to keep it open and reassign it to the parent subxact.  I
don't remember what the rationale for this was ... I'll review the
discussion about this.

-- 
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"La rebeldía es la virtud original del hombre" (Arthur Schopenhauer)


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

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