On 11/23/17 00:59, Craig Ringer wrote:
>     Exactly. If we want to handle OUT params this way they really need to be
>     the first resultset for just this reason. That could possibly be done by
>     the glue code reserving a spot in the resultset list and filling it in
>     at the end of the procedure.
> 
> I fail to understand how that can work though. Wouldn't we have to
> buffer all the resultset contents on the server in tuplestores or
> similar, so we can send the parameters and then the result sets?

The current PoC in the other thread puts the extra result sets in
cursors.  That's essentially the buffer you are referring to.  So it
seems possible, but there are some details to be worked out.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Reply via email to