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 1tx84N-003KvB-Bz for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Mar 2025 17:28:07 +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 1tx84K-007RQO-P3 for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Mar 2025 17:28:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tx84K-007RQG-Dp for pgsql-hackers@lists.postgresql.org; Tue, 25 Mar 2025 17:28:04 +0000 Received: from fhigh-b3-smtp.messagingengine.com ([202.12.124.154]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tx84H-0017dU-2d for pgsql-hackers@lists.postgresql.org; Tue, 25 Mar 2025 17:28:04 +0000 Received: from phl-compute-13.internal (phl-compute-13.phl.internal [10.202.2.53]) by mailfhigh.stl.internal (Postfix) with ESMTP id 419EF2540148; Tue, 25 Mar 2025 13:28:00 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-13.internal (MEProxy); Tue, 25 Mar 2025 13:28:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1742923680; x=1743010080; bh=E 4aq4KnQOLeyEXxRhP7znXM2vdIuW58w1Eyol3+PQTE=; b=vYEznRNsUVnw2eM7f VaOVSJnvE0UbI686rTksqzAW3yDD+s6Vr+KFEgG5a6BIrGbzyok+LNLk5McDOKx+ c2/ProC7pQVNTGQ3WfMHWyhC98YWRWXLFlwCB2WBtwRFdpjUpMxU9pJew+/Q0Ncd TGRJJW/ShaUaNGvoOD6WgN9Gnhj6EGiQP0AD2dXFWC00IH+1f5obab4SH6MbV46o QrM27Dj5h/Bfd0On+CSpv42nvzgdrCvOsUIoFxjyy/utjlZo7xIg5IpzZCkTWA0L AxQu/UAvjMuHFkoGaPrtiDtwpLGu2TuQWD+RlLc0qTgaeufSWCzhBIlAgWXlana5 aPFwQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduieefvdehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepfffhvfevuffkgggtugfgjgesthekredttddt jeenucfhrhhomheplmhlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlh hvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepvdehueffhefgueekueef heehgffhuefgfedukeejveduffegffekgeffffevgeehnecuffhomhgrihhnpegvnhhtvg hrphhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgpdhnsg gprhgtphhtthhopeejpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehmhihonhes uggvsghirghnrdhorhhgpdhrtghpthhtoheplegvrhhthhgrlhhiohhnieesghhmrghilh drtghomhdprhgtphhtthhopehrjhhujhhuuddvfeesghhmrghilhdrtghomhdprhgtphht thhopehsrghmihhmshgvihhhsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlh dqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthht ohepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidprhgtphhtthhopehtghhlsehssh hsrdhpghhhrdhprgdruhhs X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 25 Mar 2025 13:27:59 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1742923677; bh=PLOL2h62d5Hf/9KaFKG9tQ0d/xKT0qh8rG2C83K0lmY=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Ta0Ez5DO1n/ck8njYsPeGLVdmJeoY2NWOlvnRr5YZmL1xYVv2vHOdGrSoMyViXeXD Nu3Q9ix8waHAwSFGdlblXRiSIYYHMEK9f9c92utOFd10vgeuH13e1cX3crVjjT6lIA /6KvZYS/MJ9ZwdfWYQdPceTkIm2T/jUQ1f4IHoZXigFbqSdOQL575wbk9lNemmWvPo XPdVH9QUw+5aOPpOIE026XdwLse+JuRJh9uRKI/LLqGRoLK0yNza0FFduO9kfDP0Ft INI8ZPxwgLIq960FKunQbEMqFmFQ5wQHRj8xzJCg+8AsWKbecU1Z+GWZuYiUm3q8F6 lE+GnlWEwYAqw== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 9A92585; Tue, 25 Mar 2025 18:27:57 +0100 (CET) Date: Tue, 25 Mar 2025 18:27:57 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Tom Lane Cc: Christoph Berg , pgsql-hackers@lists.postgresql.org, Sami Imseih , Michael Paquier , Julien Rouhaud , Dmitry Dolgov <9erthalion6@gmail.com> Subject: Re: Squash constant lists in query jumbling by default Message-ID: <202503251727.pn3eg43zqkdk@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1282250.1742921593@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Mar-25, Tom Lane wrote: > 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. 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)