Re: psql: Add command to use extended query protocol - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: psql: Add command to use extended query protocol
Date
Msg-id 3bfbfe58-1e9f-4577-12d5-affe18c485d3@enterprisedb.com
Whole thread Raw
In response to Re: psql: Add command to use extended query protocol  (Corey Huinker <corey.huinker@gmail.com>)
Responses Re: psql: Add command to use extended query protocol
Re: psql: Add command to use extended query protocol
List pgsql-hackers
On 09.11.22 00:12, Corey Huinker wrote:
> As for the docs, they're very clear and probably sufficient as-is, but I 
> wonder if we should we explicitly state that the bind-state and bind 
> parameters do not "stay around" after the query is executed? Suggestions 
> in bold:
> 
>           This command causes the extended query protocol (see <xref
>           linkend="protocol-query-concepts"/>) to be used, unlike normal
>           <application>psql</application> operation, which uses the simple
>           query protocol. *Extended query protocol will be used* *even 
> if no parameters are specified, s*o this command can be useful to test 
> the extended
>           query protocol from psql. *This command affects only the next 
> query executed, all subsequent queries will use the regular query 
> protocol by default.*
> 
> Tests seem comprehensive. I went looking for the TAP test that this 
> would have replaced, but found none, and it seems the only test where we 
> exercise PQsendQueryParams is libpq_pipeline.c, so these tests are a 
> welcome addition.
> 
> Aside from the possible doc change, it looks ready to go.

Committed with those doc changes.  Thanks.




pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: meson oddities
Next
From: Japin Li
Date:
Subject: Re: SUBTRANS: Minimizing calls to SubTransSetParent()