Re: Proposal: http2 wire format - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Proposal: http2 wire format
Date
Msg-id 30757dea-858e-4deb-7d05-ee084eb9bc00@2ndquadrant.com
Whole thread Raw
In response to Re: Proposal: http2 wire format  (Andres Freund <andres@anarazel.de>)
Responses Re: Proposal: http2 wire format  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On 3/29/18 14:20, Andres Freund wrote:
> On 2018-03-28 20:34:13 -0400, Peter Eisentraut wrote:
>> On 3/28/18 12:09, Andres Freund wrote:
>>> Yea, not the most descriptive... Returning multiple different resultsets
>>> from a function / procedure. Inability to do so is a serious limitation
>>> of postgres in comparison to some other language with procedures.
>>
>> This is already possible as far as the protocol is concerned.
> 
> Huh, I don't see how?

See example here:
https://www.postgresql.org/message-id/4580ff7b-d610-eaeb-e06f-4d686896b93b%402ndquadrant.com

More simply, you can already do this with psql like this:

=> SELECT * FROM tbl1\; SELECT * FROM tbl2;

This will ship multiple result sets.  psql chooses to only display the
last one.  This is also discussed in the above thread.

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


pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: cannot drop replication slot if server is running in single-usermode
Next
From: Tomas Vondra
Date:
Subject: Re: [HACKERS] logical decoding of two-phase transactions