From: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
---|---|
To: | Madhavi Daroor <madhavi(at)zoniac(dot)com> |
Cc: | <pgsql-general(at)PostgreSQL(dot)org> |
Subject: | Re: retun cursor |
Date: | 2002-04-02 20:32:45 |
Message-ID: | 20020402123049.N79913-100000@megazone23.bigpanda.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Sat, 30 Mar 2002, Madhavi Daroor wrote:
> Can anybody please let me know how I can return cursors using plpgsql in
> postgresql.
> I'm moving my database from oracle to postgresql. I have lot of reports in
> Oracle that have to be converted to postgreSql. But I'm returning cursors in
> all the functions. I could not find any such option in postgresql. So please
> let me know how I can return record sets/cursors in postgresql functions.
I believe you can return open cursors from plpgsql via the refcursor
type as of 7.2. I believe there's some documentation in the 7.2 plpgsql
documentation of how to open the cursors and such.
From | Date | Subject | |
---|---|---|---|
Next Message | Stephan Szabo | 2002-04-02 20:35:08 | Re: Inheritance referential integrity problem |
Previous Message | wsheldah | 2002-04-02 19:56:44 | Re: changeing type of column |