Re: plpgsql does not close cursors when a block ends

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: plpgsql does not close cursors when a block ends
Дата
Msg-id 200311131516.hADFGd915980@candle.pha.pa.us
обсуждение исходный текст
Ответ на plpgsql does not close cursors when a block ends  ("Marcel Gsteiger" <Marcel.Gsteiger@milprog.ch>)
Список pgsql-bugs
Marcel Gsteiger wrote:
> I created a plpgsql function declaring and then using a cursor.
> After opening and using this cursor, I forgot to close it.  Now
> when the function terminates, this cursor remains open.  Then,
> when I call the function again with other parameters, the OPEN
> CURSOR complains about the cursor declared within the function
> already being open.

The system is working as designed.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

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

Предыдущее
От: Wade Klaver
Дата:
Сообщение: ...
Следующее
От: Tom Lane
Дата:
Сообщение: Re: