Re: protocol support for labels - Mailing list pgsql-hackers

From Jeremy Schneider
Subject Re: protocol support for labels
Date
Msg-id 20250312233957.5f76c7a5@ardentperf.com
Whole thread Raw
In response to Re: protocol support for labels  (Nico Williams <nico@cryptonector.com>)
Responses Re: protocol support for labels
List pgsql-hackers
On Tue, 11 Mar 2025 14:03:12 -0500
Nico Williams <nico@cryptonector.com> wrote:
> How about using a `set_config()` to deonte the "application_name" (and
> any other details) for the _next_ query, then have those details
> appear in the pg_stat_statements rows and logs?
> 
> Clients would send a `SELECT set_config(...)` and also the next query
> one after the other without waiting for the response to the first.
> The server could similarly batch the two responses.

Isn't multiple queries in one packet only possible with the simple
protocol, but not possible with the extended protocol? So this would be
entirely incompatible with prepared/parameterized statements?

-Jeremy




pgsql-hackers by date:

Previous
From: Dilip Kumar
Date:
Subject: Re: Add an option to skip loading missing publication to avoid logical replication failure
Next
From: Bertrand Drouvot
Date:
Subject: Re: Vacuum statistics