Re: Returning a CURSOR from plpgsql functions - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Returning a CURSOR from plpgsql functions
Date
Msg-id 20020131115414.B16538-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Returning a CURSOR from plpgsql functions  (Darren Ferguson <darren@crystalballinc.com>)
List pgsql-general
On Thu, 31 Jan 2002, Darren Ferguson wrote:

> I believe that you can return CURSORS from plpgsql functions however i
> have not been able to figure out exactly how.
>
> Anybody have any ideas ???

create table aa(a int, b int, c int);
create function f() returns refcursor as '
declare
 r refcursor;
begin
 open r for select * from aa;
 return r;
end;' language 'plpgsql';




pgsql-general by date:

Previous
From: Doug McNaught
Date:
Subject: Re: going crazy with serial type
Next
From: "Gregory Wood"
Date:
Subject: Re: going crazy with serial type