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 1twvGS-0011sZ-W4 for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Mar 2025 03:47:45 +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 1twvGR-00Ejwr-KC for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Mar 2025 03:47:43 +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 1twvGQ-00Ejt2-OF for pgsql-hackers@lists.postgresql.org; Tue, 25 Mar 2025 03:47:43 +0000 Received: from fhigh-a5-smtp.messagingengine.com ([103.168.172.156]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1twvGP-000yJI-0b for pgsql-hackers@lists.postgresql.org; Tue, 25 Mar 2025 03:47:41 +0000 Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfhigh.phl.internal (Postfix) with ESMTP id 73B57114014E; Mon, 24 Mar 2025 23:47:39 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-09.internal (MEProxy); Mon, 24 Mar 2025 23:47:39 -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=1742874459; x=1742960859; bh=5hY46k3oEn U0aaU6OWan+KrnC1/Jwz0sARaceTDOJko=; b=Bi7k7b6c5rW2MK0uAIyIKWJXY9 YI+Ykq2FapJxx4XCTXpcQ6TM97IFIhOlLFWBvdV+XQt6q953uxRlFb405ZJz7uSg JVPqjFDZx1lsHgRFx2990AClcKjQxe2BM4ifUL4slLKcgD/WaE5aayaeRbnvKSVm Rmt5m55I98zh0AUP6TVWEt7MnuAXGFEMxp96FIqayJs5S1Xprv5mEpWsD8kf2vAp nCPxRAlF/cgYhC6fThPV2C4k1HKvrJIXmdS0F/AXlHfY6TqVN3qeto1Ked8x8H5z NH1SdRZyUyxcALkddrj9loQ2SEZDI1PXkJtlAnKToFDrWohbAT6GdeNMkKRA== 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= 1742874459; x=1742960859; bh=5hY46k3oEnU0aaU6OWan+KrnC1/Jwz0sARa ceTDOJko=; b=lOElGfEhDszHAxn2cf0rcPFTtMlvCC60ffdGK1bCgx+Alo7LKct W4BSpVokyvz3LYoRpRA1ORIN9u3Hot49GDATa5BVo2qIDmMQnYfBh7rglz3QlGDA +GMPFp4qXvvYKzOnUMtX6kruDBWj9XnO/6HY4MOz3CVVvdrqUr73skkRRmHVYlWS z/H+6y7FONqn/RfUBm4eO37ZKVmW9v5qo47fla1iEBmPPZjDljD/BDg4oqZ+xLae c9jdQkzC+VzJEp9AO0VTOTo1B+u5aVOD+/fBvjw/Ju1dAhL1Ch4lKyDCLGGZyjh4 iowXCgsJVewCfgCEmRsIPvpChTcJCv5CYGQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduieduiedtucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnegfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefu kfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivg hruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhep teelieefudffhffhtdetleeggeegfffhkeeuveetiefgudduvedutefggeeivdejnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggv lhesphgrqhhuihgvrhdrgiihiidpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtph houhhtpdhrtghpthhtohepmhihohhnseguvggsihgrnhdrohhrghdprhgtphhtthhopeht ghhlsehsshhsrdhpghhhrdhprgdruhhspdhrtghpthhtohepphhgshhqlhdqhhgrtghkvg hrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepmhgruddt tdeshhhothhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 24 Mar 2025 23:47:37 -0400 (EDT) Date: Tue, 25 Mar 2025 12:47:19 +0900 From: Michael Paquier To: Christoph Berg Cc: Tom Lane , 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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gES5a/B0hjjUPmBa" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --gES5a/B0hjjUPmBa Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 24, 2025 at 04:41:35PM +0100, Christoph Berg wrote: > Re: Michael Paquier >> +++ b/src/backend/nodes/queryjumblefuncs.c >> @@ -33,6 +33,7 @@ >> #include "postgres.h" >> =20 >> #include "access/transam.h" >> +#include "catalog/namespace.h" >=20 > No longer needed. Indeed. >> +++ b/contrib/pg_stat_statements/sql/select.sql >> +SET search_path =3D 'pgss_schema_1'; >> +SELECT count(*) FROM tab_search_same; >> +SELECT a, b FROM tab_search_same; >> +SELECT count(*) FROM tab_search_diff_1; >> +SELECT count(*) FROM tab_search_diff_2; >> +SELECT a FROM tab_search_diff_2; >> +SET search_path =3D 'pgss_schema_1'; >=20 > Should this be pgss_schema_2 ? Oops. Nice copy-paste. -- Michael --gES5a/B0hjjUPmBa Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmfiJ0cACgkQnvQgOdby QH103BAAlYsSaCX55DVTSCn4cyBswwvRTPF3ik6OlhqDsgxcIo2/p940UbFItOqq LpFSfzTL+01P78NkKXSwcporQNq5FU3yShgJUQoBtD8kEhfcUZj5WZLiasq3BQW6 pFab4nDIVN8dlhIQpIzRqgSWR0vqO8RsuXrSpHUbGvBi22gXr33MU2MI7KgDsooQ +ECk5vvMXydNzBsS5kPWJCpInFv1MS7K2aYCymhcSh7dVtQ4AZu0XOYvrhVht0KD nqoV++QtP4HqMUX0j7VGCTpO4aHz68Y+SRdXG7DNaEhE6M88lKvzDgXMrrKkDFO6 6Iq8arR9aB6ENB3DCfRKrmqTFE++H5LYPnEdSlvkogXYCVjyHB+T66UNxKx3Ppch kw3Q0aMlafvoKsX94yb4Bqnq2m95W3Bp1Re4EjaKK0NyGiMZTcP11NQecEciJN6Y gxw7LYT/Bda6b+6+cbrhuqjTTPI4blWAeM3KJP3qyv6SubPtiEJq0o4nafXnV0V/ amOAO0iTnp4VlgWjrE5QmoQx4SrPS5VcBeVj7i76WNoPtkAK+ky7YSTk/yeDMAeL Q+3Ur9lfTLtg7rzoz55DzzrfruW9saiR7yl1lIm5kK5g/+lloiyBdiGvGY09549G QSsuqNJacjKN5MXpokykIAH5J3ewaOZiiKLeyGD7yHJNkaKSlOs= =qAB5 -----END PGP SIGNATURE----- --gES5a/B0hjjUPmBa--