Re: Feature request: Settings to disable comments and multiple statements in a connection

Laurenz Albe <laurenz.albe@cybertec.at>

From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Dominique Devienne <ddevienne@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>
Cc: Glen K <glenk1973@hotmail.com>, "pgsql-general@lists.postgresql.org" <pgsql-general@lists.postgresql.org>
Date: 2025-06-10T08:47:24Z
Lists: pgsql-general
On Tue, 2025-06-10 at 10:02 +0200, Dominique Devienne wrote:
> On Thu, Jun 5, 2025 at 1:06 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > > Provide a client connection option (and/or implement the backend support) to allow only one statement in an execute request
> > 
> > This exists already; you just have to use the extended query protocol.
> 
> Hi Tom. Can you be more specific please?
> In the context of LibPQ, in case it matters.

PQexecParams()

Yours,
Laurenz Albe