Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tx7Wl-003AeA-U2 for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Mar 2025 16:53:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tx7Wk-006v0F-IX for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Mar 2025 16:53:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tx7Wk-006v06-8p for pgsql-hackers@lists.postgresql.org; Tue, 25 Mar 2025 16:53:22 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tx7Wi-0014rR-21 for pgsql-hackers@lists.postgresql.org; Tue, 25 Mar 2025 16:53:21 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 52PGrDNb1282251; Tue, 25 Mar 2025 12:53:13 -0400 From: Tom Lane To: Christoph Berg cc: pgsql-hackers@lists.postgresql.org, =?iso-8859-1?Q?=C1lvaro?= Herrera , Sami Imseih , Michael Paquier , Julien Rouhaud Subject: Re: Squash constant lists in query jumbling by default In-reply-to: References: Comments: In-reply-to Christoph Berg message dated "Tue, 25 Mar 2025 17:28:59 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1282249.1742921593.1@sss.pgh.pa.us> Date: Tue, 25 Mar 2025 12:53:13 -0400 Message-ID: <1282250.1742921593@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Christoph Berg 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