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 1twvKt-0012US-Pj for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Mar 2025 03:52:19 +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 1twvKs-00Er5C-G7 for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Mar 2025 03:52:18 +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 1twvK2-00EoHQ-NY for pgsql-hackers@lists.postgresql.org; Tue, 25 Mar 2025 03:51:26 +0000 Received: from fout-a3-smtp.messagingengine.com ([103.168.172.146]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1twvK0-00109D-0U for pgsql-hackers@lists.postgresql.org; Tue, 25 Mar 2025 03:51:26 +0000 Received: from phl-compute-08.internal (phl-compute-08.phl.internal [10.202.2.48]) by mailfout.phl.internal (Postfix) with ESMTP id 0F18213833BD; Mon, 24 Mar 2025 23:51:22 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-08.internal (MEProxy); Mon, 24 Mar 2025 23:51:22 -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=1742874682; x=1742961082; bh=+UjUyqH/kA uJmHHUrCG3W8V27YD5E4K5x/kocpgh1jc=; b=MXyMdNy/pIXFps3X0fAhFQgdEx kBcm6V+ZQ986Md8lHf6hdbidJnxkUc5UyrbO0zQg0RbBQmZa9zHFgWPeIUUG7ik7 X2IAF+SdLDPLSALZb5TLniaNmh5z4gkXFaokl8t34t2xphp71pWghRlg3giHiXkc XpevamoY88aFhEzhw0jYEdKPCeKmP9pUDPlhKcBZvWeUayDFy5GG4PP9axvCHKZP jE024rPgSmf7Y72OWi5sqRaBsAcI6EqaUuo7C+A9+5jLXE03CxpXSNqemkTR5fia v5ERbLm0vUTCbGCP0X2CvmXabZH6TMJ4N0aW55rpZ+HnH8DB8+RobSjV8ylg== 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= 1742874682; x=1742961082; bh=+UjUyqH/kAuJmHHUrCG3W8V27YD5E4K5x/k ocpgh1jc=; b=KQueEQ/OXwulfHuGWn1p1RPmtu4AAbAnpC4YyPV0GoJa19pdFsd u+dWWDwMbpCH8nMjgHhH34zvgStjZ+n9Z6hpPfkH3jogbdmiG2V/ThtQpoUNbTOY ccdXuQebEqAUCJCBgDmTSLOdSa/wPbyWERGAFJE/UrUfx8VcSdvX37e/6tyJxJh3 q65OWy0hiftEcramVSDjrZbMKGg4KBZjyrCjt9pJYlHAwcv/2Fng/izD3Y654aiX y1YX5Za7qMHDTHn4qryPeu7ERbRMKdX45VOMcTIvrLezmdcRFy8gk6ab6vGurCSw RSIsAUo1gdMxnl6qwcl/hyM4t+hTKGvTaDw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduieduieduucetufdoteggodetrf 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:51:19 -0400 (EDT) Date: Tue, 25 Mar 2025 12:51:12 +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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="8dtaIASdkUG1m4/Z" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --8dtaIASdkUG1m4/Z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 24, 2025 at 09:38:35PM -0500, Sami Imseih wrote: > > select * from foo s1; > > select * from foo s2; >=20 > ah, thanks for pointing this out. Not as good of a workaround as > a comment since one must change aliases, but at least there is > a workaround... Exactly. Like Tom I'm not really worried about the proposal, but of course I could prove to be wrong. I am ready to assume that bloat in pgss entries caused by temp tables is a more common case. So let's move on with this proposal, before the gong. -- Michael --8dtaIASdkUG1m4/Z Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmfiKDAACgkQnvQgOdby QH0LLxAAnEZP3SsL/dxgYK7tnDc/RxPCJcqNupWF8A0TFQ0bPtlAMc+7dp/3ri8G 3F1BbiqmfgSUCubrIRUH+X0w9zulSYu049TNJyy1dvnUScaHCNhvmyZEvXAW6ysh 3A19+oTC3kR9DzN2h5j98k6g0C8z0CQxLkHr6Wurg3ed7kSWQrUoMj4M0UIxNSCL yzYPXuQKmLWL/8tXUy31OZ2+eHOSmL+tW7Q8Ej4jd0051Wkq6NdbEV0PJ2UAQFLv s68vQ4Yc7PixLtknwUy/R+hRCJems3PSf/2F351oGq6TeITHGtCrlUh6ZjqnDHJy Mfy0cyZfyGpIe2W7vmG/+0gEwarpd8KGxBuQhJZJqGqVf53i8TF9Oa5un+ulo9bq CCKgq2C5HNtfCZsIgTVXN8FABGq81Ti/DmRVVoNA136p+xFbGvM7hxRZcn+RMH7V HWuHc5gjp52KXS8EYSxCm4ajyppRo1ZolVV9EjXghmnapgDy2tTyo9V/MxRuBLSA 4HFtOBVL/yVDReeBbJSsUkNmv8Z/qxI/TO8bvp4v3HQJ8ReL5lApyi3AIWBDIv9e dqSY+AfXs5SGwt+oynss4WCvOivYrEAD705q+2xypEYeb80/MzLmfb95uQL5rlqO 4+099oESHhkE616qGMjqsdZgSt+QW0PCccVtZP5xztdkR4OIB3M= =bIYA -----END PGP SIGNATURE----- --8dtaIASdkUG1m4/Z--