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 1w9MDy-001N9R-0t for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Apr 2026 12:05:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w9MDw-002crc-2g for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Apr 2026 12:05:05 +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 1w9MDw-002crT-1k for pgsql-hackers@lists.postgresql.org; Sun, 05 Apr 2026 12:05:04 +0000 Received: from fhigh-b3-smtp.messagingengine.com ([202.12.124.154]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w9MDu-00000000imr-1Coh for pgsql-hackers@postgresql.org; Sun, 05 Apr 2026 12:05:04 +0000 Received: from phl-compute-09.internal (phl-compute-09.internal [10.202.2.49]) by mailfhigh.stl.internal (Postfix) with ESMTP id 148647A01A4; Sun, 5 Apr 2026 08:05:01 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-09.internal (MEProxy); Sun, 05 Apr 2026 08:05:01 -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=1775390700; x=1775477100; bh=nP2tDowF9d Tcvr1qpkGPIomYDYZQWqA9sF5psthb3tk=; b=hDy+ywpizI8clcuf2kIDvG/HRo 47PzHn7xELTbY1IWU7rfJNeaqnElJ2kfy+DtXEOJk9jEILjZ2C1+bs44ZT002Mx/ mnc+FHyjhpoKyXuPOfEKoGMkinZGtB2GNWlgyYgPwMN9abQunpdCT22QA8v2mPaE kbnhztMHuhO8kjsfYTr761N4VTA5Gi47u9DZyy2bSYtlKI/jF/v6A3p20Rd5g6QD 9WJH3PLQSBJgt+Vh6y0140+N48cG1f2dDuNfWrhLzZ666sRjFnyNFXGMKZAgjXrF FGZPt8YqbGgsZo0+Ul3EZZwY24N1cshRCzMqGFXmkpbighCzKxO2+JWeTOpg== 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= 1775390700; x=1775477100; bh=nP2tDowF9dTcvr1qpkGPIomYDYZQWqA9sF5 psthb3tk=; b=VFMthro2NfQNZC/l6oZUV+OTi1XuwKECOG6irzwa9JdhorjHVGq 71xZyIDuegol4Z1hKAfve2crEE5CPO5CCGyBewVLhro2BbsDsjzWCwgKwWSf64yt gOFqUGwbCnQrsETANMEhxKLfu8iuaQO5QS1Mfp5ACcZFzAiqlp+JTxVpb11KbXfc EeGhM05HKfa437CArmLK52zg9zc7MB7HkF+UplexlvMBYfPpSoTmNEqEaXprMall Fj/hfAbaNiyOBRVGl+WXtfTc/C1HbWRg1r1cL2Ye50T7resfOzWF4DSo6GO11bh3 69hpEPaQEe4gQnA3wkjBEX+ZphPtWJ5xO8Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgddugeejtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdefhedmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtjeen ucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquh hivghrrdighiiiqeenucggtffrrghtthgvrhhnpeevhfeiueeiueffiefgfffhtdejgeff tefhheegleduhfeivefgiefhjedtvdduleenucffohhmrghinhepghhithhhuhgsrdgtoh hmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhi tghhrggvlhesphgrqhhuihgvrhdrgiihiidpnhgspghrtghpthhtohephedpmhhouggvpe hsmhhtphhouhhtpdhrtghpthhtoheplhhukhgrshesfhhithhtlhdrtghomhdprhgtphht thhopehsrghmihhmshgvihhhsehgmhgrihhlrdgtohhmpdhrtghpthhtohepiigvnhhgmh grnheshhgrlhhouggsthgvtghhrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghk vghrshesphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtoheprhhjuhhjuhduvdefse hgmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 5 Apr 2026 08:04:57 -0400 (EDT) Date: Sun, 5 Apr 2026 21:04:53 +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: <8437F4D0-9DFB-4045-9318-CC3C5BA2E267@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2G6yd55OqT5eHpwF" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --2G6yd55OqT5eHpwF Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 01, 2026 at 12:55:28AM -0700, Lukas Fittl wrote: > On Tue, Mar 31, 2026 at 7:54=E2=80=AFPM Sami Imseih = wrote: >> >> > I'm +-0 regarding this routine, but I can also see your point about ho= w it's >> > useful to give at least the option to extensions to have a >> > recomputation of the Const lengths, the same way as PGSS. What are >> > the extensions that would use that? >> >> https://github.com/search?q=3Dfill_in_constant_lengths&type=3Dcode >> >> A few well-known extensions/tools out there based on a Github search. FWIW, this search points to a lot of forks > See attached a v9 that extracts ComputeConstantLengths from Sami's v7 > for easier discussion. >=20 > I've done an updated test with pg_stat_monitor [0] and pg_tracing [1] > with that, and that has both extensions passing regressions tests. > I've also looked but not tested a third extension (sql_firewall) and > that looks like it should just work as well. Still I can see the gains here, so I guess that this version works here. I'm happy enough to see the const with JumbleState. -- Michael --2G6yd55OqT5eHpwF Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmnST+UACgkQnvQgOdby QH3+5hAAkILmUgd1GsJNN3T7jI/Wcv5lLYUOJb0zGA3hJr9k6L3RMQt5nDK1KEiR hRHFqaBiq7yNfVHn13ir528EHXQfmaJAzYAzEbJdB9TBvdz07X5SytQlhoqg6zXN r9TC0U3BOp0jduRHnSVn1KO+ciOOXxiuu9JqpQB2FWDVYEtve7H/lEYOdOOaC+d8 i7flQIq4zzAVzRj/H68wWByZQmM97gpr0YuuyDj20mA5dQyAhd6nE1PzOMkRckhC +399SxkmzFy92qgtTaJhPYOqTLnvrx0KfCSiH/yZa/l0GfrITBiqzSPakBboFBaG gBDYkK+n62g7K9w4aTAGme4auscTMlIEwcX7ozxISYn/KSbB3V3JO23BU4WaPxJX bk+sFXYsIuLteFw60AFURDzMNrrxpOyOLD4sOjeXaJwAxuGKBaKJTBmBc+nnJkLh B2v47fGf1TJh3ns94ENkxOlLPyaWQElTv+5UrsXHY6EfFopzaVd8bOppK/6BEoE7 gNGyx5KR53kxE8sRHm7jA+sPB7U0OWm8V5nRfJm1ksb3uBpSzF7aH5Y8N/qXX+ZV 8sT2D6Em78qG1tOjODaU+T+QkRto7z+2ZoZ+6hvKxg10yOb4T/WScfWwNr/uIsQK YwBsvPAoLpVBcfpsh82Yx4r71G1DipH603o4eNToubyGjEw+CnE= =VnmN -----END PGP SIGNATURE----- --2G6yd55OqT5eHpwF--