Re: psql: Add command to use extended query protocol

Peter Eisentraut <peter.eisentraut@enterprisedb.com>

From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Corey Huinker <corey.huinker@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2022-11-04T15:45:35Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. psql: Add command to use extended query protocol

On 02.11.22 01:18, Corey Huinker wrote:
> 
>           SELECT $1, $2 \gp 'foo' 'bar'
> 
> 
> I think this is a great idea, but I foresee people wanting to send that 
> output to a file or a pipe like \g allows. If we assume everything after 
> the \gp is a param, don't we paint ourselves into a corner?

Any thoughts on how that syntax could be generalized?