Re: BUG #2069: Cursors are not close outside of a function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #2069: Cursors are not close outside of a function
Дата
Msg-id 22441.1132932943@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #2069: Cursors are not close outside of a function  ("Hubert FONGARNAND" <h.fongarnand@fiducial.fr>)
Список pgsql-bugs
"Hubert FONGARNAND" <h.fongarnand@fiducial.fr> writes:
> Note that i don't close c1 after returning...
> (c1 should be close automatically because it is declared inside my
> function);

What makes you think that?

If we forcibly closed cursors at function exit, it'd be impossible to
return a cursor reference, which is a very handy feature.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #2070: Encoding dependent error in comparison operators
Следующее
От: Jaime Casanova
Дата:
Сообщение: Re: BUG #2069: Cursors are not close outside of a function