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

From Tom Lane
Subject Re: returning multiple result sets from a stored procedure
Date
Msg-id 22479.1283710702@sss.pgh.pa.us
Whole thread Raw
In response to Re: returning multiple result sets from a stored procedure  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List pgsql-hackers
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> On 04/09/10 17:16, Merlin Moncure wrote:
>> Curious: is mulitset handling as you see it supported by the current
>> v3 protocol?

> If a multiple return sets from a procedure are returned just like 
> multiple return sets from multiple queries, that's already covered by 
> the protocol.

Well, the protocol says you can do it, but it would likely require
significant work to make clients deal with it sanely.

Also, the part of the protocol document Heikki is quoting is for the
legacy "simple query" mode.  We deliberately designed this behavior
*out* of the extended query mode.  So for example you couldn't use
out-of-line parameters with such a feature, unless there's a protocol
redesign.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: returning multiple result sets from a stored procedure
Next
From: Peter Eisentraut
Date:
Subject: Re: returning multiple result sets from a stored procedure