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 1twvM9-0012fo-VB for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Mar 2025 03:53:38 +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 1twvM8-00Ete8-5n for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Mar 2025 03:53:36 +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 1twvM7-00Ete0-SB for pgsql-hackers@lists.postgresql.org; Tue, 25 Mar 2025 03:53:35 +0000 Received: from fhigh-a5-smtp.messagingengine.com ([103.168.172.156]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1twvM5-0010BM-1p for pgsql-hackers@lists.postgresql.org; Tue, 25 Mar 2025 03:53:35 +0000 Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfhigh.phl.internal (Postfix) with ESMTP id 4351F114025E; Mon, 24 Mar 2025 23:53:32 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Mon, 24 Mar 2025 23:53:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1742874812; x=1742961212; bh=JfYveX9jfl Z43TXxhMjeQBmAGXqxGbwvSAYa5v11kLA=; b=nDZgZAzWDossf4KISLhTpenKhX A3HDuvgfBEridE6EPZWZmzm/74iuudgjoXMwPoEbfThByue/s6ppOcEb/UbdjR3g HqObxi7ELZg0HH8CR48TMw00ZVNTlvr1X1x2iGWu8cARS+k7jbB4Ht/53Nh4SpUY 68c0PywIQTQWmkgGocLnxLLCTg+qOtStGx/eJ9DLDe07+PUmE4zmAIKRJ0WCI3j5 ZIoPMjzg64KaRAoeuSYMVO6HNmhGICmrRtIWdHT/GfSLtWLpNHwSrG6MQwtf7kL2 pta6cR3p2VXYzDXv4dBjkY+tORoqPIphVtXKLXjPfGNRuHvl+rV6sfjoNJDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1742874812; x=1742961212; bh=JfYveX9jflZ43TXxhMjeQBmAGXqxGbwvSAY a5v11kLA=; b=osNh6I2OzwdP+7tCcKt7lcOpYlYkbpd3y1CXV8QrYysd/18n2F4 A3dAVNyDJyhAysOgkjSftNaE2Hr3N9Wf7+hNYnsiIg45W5sHE79y14Ig126gLiwc bWXdwp+U73ygeup4Zz9tq6swyRJaOHICqSA+KpiyL5zh0dIN6MOWdBK1xQHxttuu q8uJzodYQPCwi2YonYlyvbVO3pEDd4GniuT3Xks9HX+/NPuZcgp8lgb3nKyzW2DD GgpYgAaCFNnR/gYapBlxEmNait0Zp9v+XoSJgRadjOxjJ17b4dUFbYT5Xl8AZ+Lb 0tWmw4jEfbHq0pl0amrB4GEOBnQ62K+eUmA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduieduiedvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnegfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefu kfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivg hruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhep teelieefudffhffhtdetleeggeegfffhkeeuveetiefgudduvedutefggeeivdejnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggv lhesphgrqhhuihgvrhdrgiihiidpnhgspghrtghpthhtohephedpmhhouggvpehsmhhtph houhhtpdhrtghpthhtohepshgrmhhimhhsvghihhesghhmrghilhdrtghomhdprhgtphht thhopehtghhlsehsshhsrdhpghhhrdhprgdruhhspdhrtghpthhtohepmhihohhnseguvg gsihgrnhdrohhrghdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhs rdhpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopehmrgdutddtsehhohhtmhgrih hlrdgtohhm X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 24 Mar 2025 23:53:29 -0400 (EDT) Date: Tue, 25 Mar 2025 12:53:22 +0900 From: Michael Paquier To: Sami Imseih Cc: Tom Lane , Christoph Berg , PostgreSQL Hackers , ma lz Subject: Re: query_id: jumble names of temp tables for better pg_stat_statement UX Message-ID: References: <1831838.1742656359@sss.pgh.pa.us> <80506.1742660683@sss.pgh.pa.us> <461405.1742691859@sss.pgh.pa.us> <1189112.1742869660@sss.pgh.pa.us> <1192185.1742871390@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WM0exh/zQRLPOcXD" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --WM0exh/zQRLPOcXD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 24, 2025 at 10:30:59PM -0500, Sami Imseih wrote: >> Sami Imseih writes: >>> I agree that some may want stats to merge for the same tables, >>> and others may not. I will suggest this with some hesitation, but why n= ot >>> make this behavior configurable via a GUC? >>> We recently introduced query_id_squash_values for controlling >>> the merge of an IN list, maybe this is another queryId behavior we shou= ld >>> provide a configuration for? >> >> I don't like that GUC and I would not like this one either. We >> learned years ago that GUCs that change query semantics are a bad >> idea, but apparently now we have hackers who need to relearn that >> lesson the hard way. (Admittedly, this isn't quite *query* semantics, >> which perhaps lessens the blast radius. But I think we're still going >> to regret query_id_squash_values.) >=20 > query_id_squash_values has a much weaker argument to exist than a > guc to control the use of alias vs OID. Why would anyone not want > to squash the IN list? maybe we should revisit this decision in that thre= ad. This part of the thread is digressing, but I'd on the side of removing entirely the GUC and make the grouping of IN values the default. We still have time to discuss that during the beta cycle, so let's do so on its related thread. -- Michael --WM0exh/zQRLPOcXD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmfiKLIACgkQnvQgOdby QH0Ung//dyJvRLneL9QyVqSKSdmewo9qfH9UlvURk1TeOGr0PnZ6D8cL1+AibOuw 8xtQ5O7pZPktQOtApGfIbq3qIQQ8ycKHO1rTwmgAzKIZ/lw3vbHLY0Z0lyUFQUUm IdFIm1cIQIiAwx71uUM1BADEkbvigOvZldocW1fru11VWIlllGxiTBCQfirXGTOZ yA71RAt/P/TVNMIuHg9Ky2K45BnhRADR+PnRHaRXZTQ2g6t0kb7P902aOTqFHskw ccaxVjzogLVDwI/niSW5le2dBpeo012JdTcr++WxYF+NjMW+OsgD18c9QDS5vhNL TJSuNdIZr5s8xJuoI2lLTy1MNA8Jjf06DVWqvUpq2g5qs/9Rh+nmA2LqyDUEi5WE wxatq1xcQtw869wfkYRdpWuS7JpQcvvOZ7TxJ8I7ygUg8l2TKaRFdTjKzurfHU3A mVfgGFL9LlpyWlHBKGtLV7wsGM4leHPZPQaQJ1WMIxv5EVexjDIEcUHIZ1aHxJDb W8SaNBxsfw0jQ+kno9S+bAN4DyJXzsHePG1NxiWWKUO8NKj+QHRw1RYmJUu2QJsZ EODInOwr95+k9R/CqHYO6G8diJmwW/n9STdjoIFfgqqrjmR1TgwzBjZpSBS0joW4 slKOblQ8c4/TVMznQgHqF3P5NuO/5NMlyEwFs5lor/TDNxBirFY= =jLGI -----END PGP SIGNATURE----- --WM0exh/zQRLPOcXD--