From: | Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Christoph Berg <myon(at)debian(dot)org>, pgsql-hackers(at)lists(dot)postgresql(dot)org, Sami Imseih <samimseih(at)gmail(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>, Julien Rouhaud <rjuju123(at)gmail(dot)com>, Dmitry Dolgov <9erthalion6(at)gmail(dot)com> |
Subject: | Re: Squash constant lists in query jumbling by default |
Date: | 2025-03-25 17:27:57 |
Message-ID: | 202503251727.pn3eg43zqkdk@alvherre.pgsql |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
On 2025-Mar-25, Tom Lane wrote:
> Christoph Berg <myon(at)debian(dot)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.
True.
> 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.
I have no problem making it superuser-only, and I can see making "on" be
the default. I am not opposed to removing it completely either, if we
really think that the current behavior is no longer useful for anybody.
Earlier in the discussion, other possible values for the option were
suggested, such as a way to distinguish arrays that had "lots" (say,
hundreds or more) of entries from arrays that were "small". That could
be selected by the user (or site admin) using this GUC, though there was
no agreement on exactly what that would be. During the FOSDEM 2024
development meeting there was a general dislike of this idea, which
AFAIR was mostly predicated on the displayed query no longer being valid
SQL. But now that we've chosen a format that uses SQL comments, this is
no longer a problem, so I think we haven't closed that door yet. But we
may still find out that no user cares about this.
Dmitry?
--
Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/
"Los dioses no protegen a los insensatos. Éstos reciben protección de
otros insensatos mejor dotados" (Luis Wu, Mundo Anillo)
From | Date | Subject | |
---|---|---|---|
Next Message | Sami Imseih | 2025-03-25 17:55:58 | Re: Squash constant lists in query jumbling by default |
Previous Message | Daniel Gustafsson | 2025-03-25 16:58:15 | pgsql: psql: Make default \watch interval configurable |
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Treat | 2025-03-25 17:51:17 | Re: Statistics Import and Export |
Previous Message | Sami Imseih | 2025-03-25 16:58:21 | Re: query_id: jumble names of temp tables for better pg_stat_statement UX |