Re: Multiple "selects" returned from a single stored procedure

From: Joe Conway <mail(at)joeconway(dot)com>
To: Shachar Shemesh <psql(at)shemesh(dot)biz>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, PostgreSQL OLE DB development <oledb-dev(at)gborg(dot)postgresql(dot)org>
Subject: Re: Multiple "selects" returned from a single stored procedure
Date: 2004-05-07 20:28:41
Message-ID: 409BF179.5060007@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2004-05-07 20:39:25 Re: Aclitem "high level description"
Previous Message Andrew Dunstan 2004-05-07 20:14:54 Re: psql 7.3.4 disagrees with NATURAL CROSS JOIN