pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Christoph Berg <myon@debian.org>
Cc: pgsql-hackers@lists.postgresql.org, Álvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Sami Imseih <samimseih@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Julien Rouhaud <rjuju123@gmail.com>
Subject: Re: Squash constant lists in query jumbling by default
Date: Tue, 25 Mar 2025 12:53:13 -0400
Message-ID: <1282250.1742921593@sss.pgh.pa.us> (raw)
In-Reply-To: <Z-LZyygkkNyA8-kR@msg.df7cb.de>
References: <E1tubCw-0038AS-24@gemulon.postgresql.org>
	<Z-LZyygkkNyA8-kR@msg.df7cb.de>

Christoph Berg <myon@debian.org> writes:
> For 2), Tom said that configurability is 1) often much less useful
> than originally planned, and 2) tools have to cope with both settings
> anyway, making implementing them harder. Plus, switching at run-time
> makes the result even less predictable.

To clarify that last bit: if some clients run with the GUC on and some
with it off, you have a mess.  Even statements that are completely
identical will have different query IDs under the two settings.

If this GUC sticks around, it should be at least PGC_SUSET (on
the analogy of compute_query_id) to make it harder to break
pg_stat_statements that way.

			regards, tom lane





view thread (9+ messages)  latest in thread

Message-ID: <1282250.1742921593@sss.pgh.pa.us>
Permalink:  ../1282250.1742921593@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1282250.1742921593@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, myon@debian.org, alvherre@alvh.no-ip.org, samimseih@gmail.com, michael@paquier.xyz, rjuju123@gmail.com
  Subject: Re: Squash constant lists in query jumbling by default
  In-Reply-To: <1282250.1742921593@sss.pgh.pa.us>
  References: <E1tubCw-0038AS-24@gemulon.postgresql.org> <Z-LZyygkkNyA8-kR@msg.df7cb.de> <1282250.1742921593@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox