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 1ti0Im-009tG0-D4 for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Feb 2025 00:08:28 +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 1ti0Ik-002AMA-AB for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Feb 2025 00:08:27 +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 1ti0Ij-002AM0-VC for pgsql-hackers@lists.postgresql.org; Wed, 12 Feb 2025 00:08:26 +0000 Received: from fout-a2-smtp.messagingengine.com ([103.168.172.145]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ti0Ii-000LU8-0L for pgsql-hackers@lists.postgresql.org; Wed, 12 Feb 2025 00:08:26 +0000 Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfout.phl.internal (Postfix) with ESMTP id A471F1380238; Tue, 11 Feb 2025 19:08:21 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-11.internal (MEProxy); Tue, 11 Feb 2025 19:08:21 -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=1739318901; x=1739405301; bh=hnuKeD7Zf+ A7aoQvvHTz83/GJamVP0LQC4f3pDooFDA=; b=B3U5r/49U9vnVRv+agnjv3Peqx xCUg7ev7T5nYdb07gaKmvQA/sfu/pKlv0TkkvpeqMQKoOM5dGkTCNNsFoy9xiEBQ THGtE5yKF5e3WNXCbgTtMXTEKd6M0RO8VT5X/nVHV1j7ri5v1zeyaFktN9+1SDNf gq6PqJUHOCkAKWxTg+qvipcwMdeNWc1gUdqWfctH0RT/5fpBbTx8cwX0H9SNlO01 2o3ZMK/iWKlESyhF2/VSjq75dDhKKTB3xJPB/HY+VVH5Yk9q27rXtn88Wnf4l5kq BlUkmX2kew/vJRSRjvLvoLItEyCaVhYUSZKoy+FwOmAgWiGXYUuBsgRiZnaA== 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= 1739318901; x=1739405301; bh=hnuKeD7Zf+A7aoQvvHTz83/GJamVP0LQC4f 3pDooFDA=; b=H36TUdBxFiJPMZBBOfY95n6UN6nyQIH8rGyGWjwmOKajMPfdm0M 5rzZYtIF9EBj1Mg2Pf9rLI9rYJ9P50wQtWjnwLyqTQym6KJ8C+TP3xwXkfApyVl1 FST8WDuQuuNy1/REWmaJtiY8kHzSwI1MgONS1k68AF3siNP1hA+DKENz9DQ4ZS+S vpd2zx2nBlmOoSkgtHNfPgSwpvyBDFD/4OlAlGemroyLH0xPxBSPp58vCSBQ2VId 8R6oC6HcT/PDn2OB6Udzf1n/jlF7DYXHj2ra8VipSumNp33riSDZ+FqFhV3sBZjn gy7LOxCLGrztEnTTX0fWM+2BFfYRj//aI+Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdegvdegtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenfghrlhcuvffnffculdefhedmnecujfgurhepfffhvfevuffk fhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrh cuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeeh hfevteeugfffgeefiedvhffhuddufeduuefgkeegteeuleehgeefieffjeekheenucffoh hmrghinhepfihikhhiphgvughirgdrohhrghdpphhoshhtghhrvghsqhhlrdhorhhgnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrg gvlhesphgrqhhuihgvrhdrgiihiidpnhgspghrtghpthhtohepiedpmhhouggvpehsmhht phhouhhtpdhrtghpthhtohepshgrmhhimhhsvghihhesghhmrghilhdrtghomhdprhgtph htthhopehluhhkrghssehfihhtthhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgr tghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepmh grrhhkohesphhgrghnrghlhiiivgdrtghomhdprhgtphhtthhopegrlhhvhhgvrhhrvges rghlvhhhrdhnohdqihhprdhorhhgpdhrtghpthhtoheprhhjuhhjuhduvdefsehgmhgrih hlrdgtohhm X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 11 Feb 2025 19:08:18 -0500 (EST) Date: Wed, 12 Feb 2025 09:08:00 +0900 From: Michael Paquier To: Sami Imseih Cc: Lukas Fittl , PostgreSQL Hackers , Marko M , Alvaro Herrera , Julien Rouhaud 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="q9nmqBIre7w02312" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --q9nmqBIre7w02312 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 10, 2025 at 02:02:10PM -0600, Sami Imseih wrote: > I am OK with moving away from "jumble" in-lieu of something else, but > my thoughts are we should actually call this process "fingerprint" > ( a term we already use in the queryjumblefuncs.c comment ). > A fingerprint consists of all the interesting parts of a node tree that a= re > appended and the final product is a hash of this fingerprint ( i.e. query= Id ) > For node attributes we can specify "fingerprint_ignore" > or "no_fingerprint". What do you think? I think that I have a long history of showing a bad naming sense, that I've done some follow-up API renames even on stable branches because folks didn't like some names, and that I have a reputation for that on these lists. :D 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). >> The concept of location does not apply to plans, based on the >> current proposal, so perhaps we should talk about "query normalization >> location"? >=20 > Are you referring to JUMBLE_LOCATION? and whether to keep it in > queryjumblefuncs.c ( or jumblefuncs.c as is being proposed )? Yes, I am referring to the existing jumble location. I don't quite see how it fits with the plan part because we don't really have locations to track. Point worth noting, Alvaro has mentioned that he was planning to look at the pgss patch with IN clauses: https://www.postgresql.org/message-id/202502111214.fcfodex6t3sy@alvherre.pg= sql Adding him in CC here for awareness, but I can see that both of you are involved on the other thread, as well. Also adding Julien in CC, as he has some out-of-core extension code that depends on the jumbling structures if I recall correctly. -- Michael --q9nmqBIre7w02312 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmer5mAACgkQnvQgOdby QH3bQw//dUfsoWjLiIj+9xuB6lhs6ZdICRHo4Qcb3BuxJYn1ItzfHRhSUwZERhPc X3FIa1b9K0I7Br3Ddu+AgnD7M0+VEY9+GzDrwjFVB5kv7Svh0ww9d52iWnG7MmnR j3055Zw7snGLH8GdyWOQ2WQvbllKTBiJ4SM9v3Ts4rOnCeT2I7QMsqSlU/wqbQMd UX8r8QBOPJnPU985VhVDZPCamhNj6BXAEGTtMzhghndDDQ9zU9nEt5B2en92bCYT FBuGnYAP+UUZ0jRjUWEKaC5vW96gTZMqwVYixXpEv8Mv01Pj7wCyi0Dd+1NqcAGW ndR+9O5ousgO6/ipfugHqYL+l/gkuvbaeDgiatu2/8hrIfoRe0XVXLcMweQH3nbs clU/spvU/YkjBVnYojjXgUZxlBtmmOj4A65XbcO171oIprzpUChW3qGrbY5AQzho FJ2JnW+5avdXa9P7hvfV02miNZqHs0HKmTpZf4f8bFoHDMietRu8nzENq2q8YaEP J00lZM9X3d7xOliXUTnxfJdQmdMJ1bKpmzU1sKAIyLprYJFENEAwkpf4D6w2udYp C4zKCfh2rHROc1cuYqm9Tj+LCNhKMBBGAygmrzkn7q37cYukgtrJlQ4jjDQXwbrg tdesNcJoCDvK1xxj7rlVCXYubbj72K+sqHqSLM2RXfEXiHt16CQ= =xl6s -----END PGP SIGNATURE----- --q9nmqBIre7w02312--