Re: returning multiple result sets from a stored procedure - Mailing list pgsql-hackers

From Merlin Moncure
Subject Re: returning multiple result sets from a stored procedure
Date
Msg-id AANLkTin4hPHBp9rRV5JZmd_Wrb+T94NmaZ8S-OCVUqf5@mail.gmail.com
Whole thread Raw
In response to Re: returning multiple result sets from a stored procedure  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
On Thu, Sep 2, 2010 at 7:17 PM, Alvaro Herrera
<alvherre@commandprompt.com> wrote:
> Excerpts from John Adams's message of jue sep 02 18:25:45 -0400 2010:
>> I noticed in postgres you cannot return multiple result sets from a stored
>> procedure (surprisingly as it looks like a very good dbms).
>
> If you're really intent about doing this, you can emulate it by
> returning a set of refcursors.

Also arrays can work pretty well, depending on how much data there is
and where it's going.

merlin


pgsql-hackers by date:

Previous
From: Ron Mayer
Date:
Subject: Re: Interruptible sleeps (was Re: CommitFest 2009-07: Yay, Kevin! Thanks, reviewers!)
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Streaming a base backup from master