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 1ti237-00AIOg-HA for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Feb 2025 02:00:25 +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 1ti225-002f4b-Rt for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Feb 2025 01:59: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 1ti224-002f3R-VW for pgsql-hackers@lists.postgresql.org; Wed, 12 Feb 2025 01:59:22 +0000 Received: from fhigh-a7-smtp.messagingengine.com ([103.168.172.158]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ti223-000KHe-0M for pgsql-hackers@lists.postgresql.org; Wed, 12 Feb 2025 01:59:20 +0000 Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfhigh.phl.internal (Postfix) with ESMTP id B96A41140211; Tue, 11 Feb 2025 20:59:17 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-12.internal (MEProxy); Tue, 11 Feb 2025 20:59:17 -0500 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=fm3; t=1739325557; x=1739411957; bh=tF/S46hgco R7T+zud606eQh1qAq2MCglJrjqWHWpDWU=; b=XK7tX308/IvNPeDpojM6U8SIof To1IIeatfgKEUhfaoGgo7uf3bLkq9I3wGVRUBe6KRR3d/HhGyI/zLsH1tR7FcUl8 qZxr3MJuNnEGsCAM/MdHAD2zPQNLCcYWnQDNdgNmZfJMM3TJxKJwNhnGOMtKd9yG KfDjmEf3ChviePTDDyRinF+llHkk+LnNd9KfD7tzfV/WJYZVkQBajJUkK6cA6jA0 aVRSQ7uH2ZEQjqnwBW2Xv4fmwPoob/+xpoSVGTiLyGVgr+HIe9cW5TpxxQ+9lPt3 Qt3t9tKBDev3JbrLcaNRVVzzYHXnraP4HOkk8PIGS1cpxEWROhNjkjpPEAkg== 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=fm3; t= 1739325557; x=1739411957; bh=tF/S46hgcoR7T+zud606eQh1qAq2MCglJrj qWHWpDWU=; b=xvFRSZH+Q28piKw4Dn+P5wK/ajUAjF5y5P7d0rmGmZJ5muD2GVo jQW83FuwafH6D7CuOhtnFv+OHYPpsAR58HdHbk+KxgqMvSKKRtxLCLJ3L321V6Wv 4AA63YS19asu6QLjypYNp60TWGFqHg0QY9KKrSIu0JKE7H7PI44avAG4ajW9B7NS 5GjJlyi3Qt1ho7Ix08xjTPZy8zFBG1DlgPZ7T0AXLOTI61TaoE4+Bpd3YNb5zkBm zL2v/67Cws41/CO6stZJ2WO8DeoVs6czGcuabVh7JWcqQfDYQnIjQh6sze5j64gp E8O2whhyBz6XX+FckiGvqfqxgnYHx7/BwKQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdegvdeivdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenfghrlhcuvffnffculdefhedmnecujfgurhepfffhvfevuffk fhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrh cuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeff tdejtdfgudehgeetkefhgfdutdeihfehvedvgeduueehhfefieegkeegtdelieenucffoh hmrghinhepfihikhhiphgvughirgdrohhrghenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiipd hnsggprhgtphhtthhopeeipdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehrjhhu jhhuuddvfeesghhmrghilhdrtghomhdprhgtphhtthhopehsrghmihhmshgvihhhsehgmh grihhlrdgtohhmpdhrtghpthhtoheplhhukhgrshesfhhithhtlhdrtghomhdprhgtphht thhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdroh hrghdprhgtphhtthhopehmrghrkhhosehpghgrnhgrlhihiigvrdgtohhmpdhrtghpthht oheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 11 Feb 2025 20:59:13 -0500 (EST) Date: Wed, 12 Feb 2025 10:59:04 +0900 From: Michael Paquier To: Julien Rouhaud Cc: Sami Imseih , Lukas Fittl , PostgreSQL Hackers , Marko M , Alvaro Herrera Subject: Re: [PATCH] Optionally record Plan IDs to track plan changes for a query Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kZuqx88WszykMX1/" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --kZuqx88WszykMX1/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 12, 2025 at 09:20:53AM +0800, Julien Rouhaud wrote: > On Wed, Feb 12, 2025 at 09:08:00AM +0900, Michael Paquier wrote: >> Wikipedia seems to agree with you that "fingerprint" would fit for >> this purpose, though: >> https://en.wikipedia.org/wiki/Fingerprint_(computing) >> >> Has anybody any comments about that? That would be a large renaming, >> but in the long term is makes sense if we want to apply that to more >> than just parse nodes and query strings. If you do that, it impacts >> the file names and the properties, that are hidden in the backend for >> most of it, except the entry API and JumbleState. This last part >> impacts some extensions and I have been maintaining one a bit >> (pg_hint_plan). >=20 > I agree that fingerprint is a good improvement. Okay, thanks. So this would mean something for the file names, the node_attr names, the structures and the APIs if we put all that under the same label. > > > > Also adding Julien in CC, > > as he has some out-of-core extension code that depends on the jumbling > > structures if I recall correctly. >=20 > I do have an extension to support custom fingerprinting logic, but the > introduction of the pg_node_attr based jumbling kind of broke it. >=20 > FTR my main motivation was to be able to deal with queries referencing > temporary relations, as if your application creates a lot of those it bas= ically > means that you cannot use pg_stat_statements anymore. Do you have an issue more details about your problem? If we can improve the situation in core without impacting the existing cases that we need to support in pgss, that may be worth looking at. -- Michael --kZuqx88WszykMX1/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmesAGgACgkQnvQgOdby QH1vug/9EBD2q7jwJBY44tsMLC/Y4wbjb4MO4xpNcNtntLs5xHehxij3gPuKCYJx 2M5PQm7O+PgZqIb12CSWrSnq4GE7XJXu0ROFDh2eS7on7r7umjG1mf52XPrCPGad Q45vyRt4KxCFHnWMKNKJlCNYCe7EvGI2+ajF1KDbRZstP9/MirKZ+MAfzA6AHQgh GbWoEVEasDdUAl2YHVZMdsPVfAlB+eCnV9xRxxfa1xF7eXUOH3OGU5xZlMj1sAzZ BVuesJzoSFlFIeNEYLUsvQp97vbzVa8i97Y5FrGqhr2TZyzzp5zjUQw1JOCgThik 23r2j1QV8D1M6YfljF+93TXMBDVG0tROCUK5U52lopuOnTSkuV6z2MXn92LOJiZ9 1eUEvi0ieBITigUTmiR0pWsGVzEttK5hQo3oe88bGcS5VtNFq/Z4MPJ1FwRxnphs P5Zhy9k+sqieVs6BKto+KpHuh5pWfDulN09bU9gl/Hn61em1eNKFHJOh6o6MmGkt dxQgzemaxqh22Y2j3G2dYszO/FxV1tNg1IT++qsWqBxI4FOFAQBF3f7ICq0Qmrt9 bVRHjIetyVfoLhGaenEiYp4Jv9Swt7o4Qxmz8qRvApLOA9bFNPfkQmJ2/ZT8Ts7+ jazzWI8sqOnDoK2LEFlZOJEi0RvXIkD+IeXuP0aXhmz914Wq0Ss= =udwa -----END PGP SIGNATURE----- --kZuqx88WszykMX1/--