Re: Multiple "selects" returned from a single stored procedure - Mailing list pgsql-hackers

From Joe Conway
Subject Re: Multiple "selects" returned from a single stored procedure
Date
Msg-id 409BF179.5060007@joeconway.com
Whole thread Raw
In response to Re: Multiple "selects" returned from a single stored procedure  (Shachar Shemesh <psql@shemesh.biz>)
List pgsql-hackers
Shachar Shemesh wrote:
> Just out of curiosity, how do I manually destroy the cursor when it's no 
> longer needed? Just do "close refcursor"?

Yup:

http://www.postgresql.org/docs/current/static/sql-close.html

> Also, does this copy take place when the table is changed, or as soon as 
> the transaction ends? If the former, it may not matter.

IIRC it is the latter.

Joe



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: psql 7.3.4 disagrees with NATURAL CROSS JOIN
Next
From: Peter Eisentraut
Date:
Subject: Re: Aclitem "high level description"