dbTalk Databases Forums  

Re: [BUGS] plpgsql does not close cursors when a block ends

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss Re: [BUGS] plpgsql does not close cursors when a block ends in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bruce Momjian
 
Posts: n/a

Default Re: [BUGS] plpgsql does not close cursors when a block ends - 11-13-2003 , 10:15 AM






Marcel Gsteiger wrote:
Quote:
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 (AT) candle (DOT) 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

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.