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.96) (envelope-from ) id 1vaROk-008T0a-0e for pgsql-hackers@arkaria.postgresql.org; Tue, 30 Dec 2025 04:31:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vaROh-002PjZ-0V for pgsql-hackers@arkaria.postgresql.org; Tue, 30 Dec 2025 04:31:51 +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.96) (envelope-from ) id 1vaROg-002PjR-23 for pgsql-hackers@lists.postgresql.org; Tue, 30 Dec 2025 04:31:51 +0000 Received: from fhigh-a6-smtp.messagingengine.com ([103.168.172.157]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vaROd-003Vbi-2H for pgsql-hackers@postgresql.org; Tue, 30 Dec 2025 04:31:50 +0000 Received: from phl-compute-09.internal (phl-compute-09.internal [10.202.2.49]) by mailfhigh.phl.internal (Postfix) with ESMTP id 2EE08140007F; Mon, 29 Dec 2025 23:31:45 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-09.internal (MEProxy); Mon, 29 Dec 2025 23:31:45 -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=fm2; t=1767069105; x=1767155505; bh=nNwg1VTV0p +q+XTLO+yiTbCI3LuX2yYnx+ddLMejk3E=; b=WyCR932Gq4+/YsoQxHG1b5ueWz YG33jwEioaZybUXPICRq7uY0hUL4r0xcOgXOIb87iw+SLPYXdCiCKBBB+oGxOSLe Urmm4SzNrsGJ3T239bMGSwArCZlNTrH7WchXX5vBDzwXGNujDJn1jo2cO5pBgvI7 tgHslMSQ6rT+QbG6irKtHJGyzmXap/PtTX1a2lQOhE66IgVrtwD8syce9exQTNsE DlcLz99VSO6qcJBM7UpAn/ITB+L9A/z/khTpUSWAcZnO6g6xIGoehcwtzTTEiD2i 1eSGm8L4kkgnPypDoTmMrjIImSCJY7BbB8OAoDa+QSdcQr+Kkwhht8MN/8fQ== 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= 1767069105; x=1767155505; bh=nNwg1VTV0p+q+XTLO+yiTbCI3LuX2yYnx+d dLMejk3E=; b=XW6IGBNVhEiYIKAK7l4w6zEE1pdV2/5Iy+KlWlQyoal+DWOt8wa +fFfwwp3eMtYBlImvjDNYGKyIn3BQozRDJuih/B4mdCuI9W8pdimWUZQK17IXswE ts1t3P/nm0iG8TPwH+a8vZmjHeLz74vqq5p6UXzVFasCfAi6rtiYkwrdTen/rxVo okmMWr2j8zxTbJAtqOaTLL/8CF5kfQ0hRv5gEUKo5BA5SSCPQ0feMSz6mr5WxKHU 8LEWmNqT9mLsI5oTqNWHiCbHULmYLdESkg+n1WVDVX9icBHmc2k5Od9ZIA2VzijD pmEosInH5D+xBnjpHSUqnfK3arcW2rp3nKQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdejledtiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvden ucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquh hivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeggeff hfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiipdhn sggprhgtphhtthhopeehpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehluhhkrg hssehfihhtthhlrdgtohhmpdhrtghpthhtohepshgrmhhimhhsvghihhesghhmrghilhdr tghomhdprhgtphhtthhopeiivghnghhmrghnsehhrghlohgusghtvggthhdrtghomhdprh gtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehpohhsthhgrhgvshhqlhdrohhrghdp rhgtphhtthhopehrjhhujhhuuddvfeesghhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 29 Dec 2025 23:31:42 -0500 (EST) Date: Tue, 30 Dec 2025 13:31:30 +0900 From: Michael Paquier To: Lukas Fittl Cc: Sami Imseih , zengman , pgsql-hackers , Julien Rouhaud Subject: Re: Refactor query normalization into core query jumbling Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="GZkC6/BzkmUs3phR" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --GZkC6/BzkmUs3phR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Dec 29, 2025 at 06:34:18PM -0800, Lukas Fittl wrote: > I noticed pg_hint_plan checks the JumbleState argument to determine whether > or not to run an early check of the hint logic. I'm a little > confused by this (and if this is about query IDs being available, > couldn't it just check the Query having a non-zero queryID?), but > FWIW: [3] See also the code before 32ced2e13e75. We wanted a JumbleState in this case to be able to generate a normalized query for the hint table. Since this commit we only rely on the query ID in the hint table, so it would not matter for pg_hint_plan if the JumbleState is removed from this portions of the hooks. Saying that, yes I think that you are right, we should be able to remove this dependency on JumbleState in pg_hint_plan_post_parse_analyze() and rely on the query ID. I'm writing down a note about cleaning that on the HEAD branch of the module.. -- Michael --GZkC6/BzkmUs3phR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmlTVaIACgkQnvQgOdby QH1+UBAAqssiT2p1Jx93XN41zA1BzFDRWi/iRpwCXs4qxGnLC+pIBU4sxytyJSlF zJutsnCC0BJoCjgzlVpHuMecb/W4wPE2WIT2YqmJTAWibXY1i4/3DgQi2sKdRmT+ ek0b2cQayBvsB+3SkJ0LnXFcZbTAhs+yDKk/2+H7ph7wr7l7Xbh3qUgMx+Mc4S2w ruRdsbc7qlaM0iczIkOnUbZYXg35WYeDoTpCkfYTXAgw8Vxq6ICO6mzPRhuikHev eW0jSeg1F+qAEW2csKq2VAgEfMqsIhm71P5aeyT6MWpcqYEvbAxikkkJPCJ6P73J NsArHqKmEA241s281L/I48IwCXi8zw2gL79bs7tO9ZENEEXrlhkMdrlrfFxA/C7J PmtQUGRKdbjoFML5cNI475fAk9CLoNcwYJjB4gLahKciiQg/t0U01ey74IIFE+lV iiY3JaB+wcIQwIXoyIZaZV3IwhJcsjTBdFFtqrlR3l6z3AndcuisW5hyH1gl/4Ws TC8DwEL+Ts7CydBxO14zJKmOQKUlZVV6z8RUYKiH7zHFAFbWCfGNVQMjpr8pOXv6 CPdCkNdXVF3JIJWmEbxme1tt8oZz/8nG2M2bpK97eXflK3d9YwfmgkKzUcEjALO+ Jm8vB9iMsyPC3ooCwNbW+upGQqHCqNdU27TLwOQ7Vp+KyQT9/6A= =XeEo -----END PGP SIGNATURE----- --GZkC6/BzkmUs3phR--