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 1uyJ6g-006KUQ-I1 for pgsql-general@arkaria.postgresql.org; Mon, 15 Sep 2025 23:59:38 +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 1uyJ6e-00ENRv-5K for pgsql-general@arkaria.postgresql.org; Mon, 15 Sep 2025 23:59:36 +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 1uyJ6d-00ENRn-Qi for pgsql-general@lists.postgresql.org; Mon, 15 Sep 2025 23:59:36 +0000 Received: from fout-a1-smtp.messagingengine.com ([103.168.172.144]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uyJ6Y-00121q-1V for pgsql-general@postgresql.org; Mon, 15 Sep 2025 23:59:34 +0000 Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50]) by mailfout.phl.internal (Postfix) with ESMTP id 33702EC0217; Mon, 15 Sep 2025 19:59:30 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-10.internal (MEProxy); Mon, 15 Sep 2025 19:59:30 -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=fm1; t=1757980770; x=1758067170; bh=VwQxnM18Aq epkrmjBCdsY+mtRVfjTPr/KrNFcqY9oz8=; b=caQUvKWwp/WxKmsHnx7saCIbDS UdmNlDelAuCNv1kMr89Z08ut3goBO1JqIJXdl39ox5pFJS1oFA+0KPSdC3pvtozZ Ga842nkY7SLy92ZZp+YZ1yDlOJ7vCAxJLqgtJOHpZ9x2jXVVqIBJL0w4IXQSO8QY O2VMfGrO/PpyKkZVudoEPJGnLj1TQ6I3ZXi9J/UeGg1D8ZouhBQt41du+8H6duKa mBwXzXiST07lHW7SXrXis5KKm5xOOIrT27nLVdd1UZBeXWgHj17PB2j90mj1mKOK fqJ4SsXolE6/hp/cbdVSydKO8C5QMBS40uXiG98ZyTNyqTLCVJwM7EtDmh0A== 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=fm1; t= 1757980770; x=1758067170; bh=VwQxnM18AqepkrmjBCdsY+mtRVfjTPr/KrN FcqY9oz8=; b=hPZ2J9QBMUdXjeVNAU1wo32jEIW/ErtyYv3YJSdPtDaET3A2oyG +CIJpL1bUO0k+E5R7QZ6AKOA5mQsrqpvigyZeAr5Pc5oH2LZh4jMLOBVMmyUKtii Z9K5REwBOws0cCSb+Sz1+g4PPrV9h9bwPrn9dMU5TNiuWhmTkeZvznUyASb4Fy1B yWAOsl1LaqqqAWk88LYyjthIajfzHLv6+gqdLVWPWnY0C7zQipmPozTsT1QBoBpx Bz4/gfqm9WMh0Z3sFvYFqDrGb+0Ac0hkEP59M+5Ip0/ErNBR2SnjbprAwJJlHR6E 8AGM2USTcYZO65eWqUA+v0DvSV0u49zfqqA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdefledtjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdefhedmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvden ucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquh hivghrrdighiiiqeenucggtffrrghtthgvrhhnpeegffejvefgveduvdejtddvtdeijeeh udeuledvudeftdfgfeejvdekveekiedvvdenucffohhmrghinhepphhoshhtghhrvghsqh hlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidpnhgspghrtghpthhtohepgedpmh houggvpehsmhhtphhouhhtpdhrtghpthhtohepthhglhesshhsshdrphhghhdrphgrrdhu shdprhgtphhtthhopehlrghurhgvnhiirdgrlhgsvgestgihsggvrhhtvggtrdgrthdprh gtphhtthhopeguuggvvhhivghnnhgvsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhg shhqlhdqghgvnhgvrhgrlhesphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 15 Sep 2025 19:59:27 -0400 (EDT) Date: Tue, 16 Sep 2025 08:59:15 +0900 From: Michael Paquier To: Tom Lane Cc: Laurenz Albe , Dominique Devienne , pgsql-general@postgresql.org Subject: Re: Latest patches break one of our unit-test, related to RLS Message-ID: References: <2109533.1757686026@sss.pgh.pa.us> <2c58dcdba889f5b28df5ad9d21b5ea2d0ac63a9a.camel@cybertec.at> <2673230.1757722323@sss.pgh.pa.us> <501ee89ad54184804d14b416781dafd340c789d3.camel@cybertec.at> <2683918.1757728397@sss.pgh.pa.us> <296006.1757797220@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="i6/BKdm2W1x86K4G" Content-Disposition: inline In-Reply-To: <296006.1757797220@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --i6/BKdm2W1x86K4G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Sep 13, 2025 at 05:00:20PM -0400, Tom Lane wrote: > Laurenz Albe writes: > > I came up with the attached patch set. >=20 > I did some more work on the comments, adjusted a couple of places that > could be simplified, and pushed it. My apologies for the silence here. The timing of the events is interesting. I have been pinged about this issue on Friday evening/night time here: https://www.postgresql.org/message-id/202509121631.dtn5kw5er2m5@alvherre.pg= sql For a fix applied as of cdf7feb96562 roughly 24 hours after this ping. The timing was a bit bad for me, because I was already gone for what was a long weekend in Japan, just back today. So it was a bit hard for me to look at anything > I didn't really love the "fix it and then explain it afterward" > approach. It's hard to review a patch if you don't understand the > logic. I considered swapping the order of the two patches, but > eventually just merged them into one. Merging both things makes sense as well here. Ugh, yes. That was wrong. With the fix, '%' is translated: - Filter: (f1 ~ '^(?:[\a].*)$'::text) Before the fix, not translated. + Filter: (f1 ~ '^(?:[\a]%)$'::text) Thanks for the report, the analysis, and the commit. -- Michael --i6/BKdm2W1x86K4G Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmjIqFMACgkQnvQgOdby QH2uGA/+OHZekXukxXUxFPodjFTND2Vy5/zAtdTrUMmMUI+D9Cc+nEFOYDUyudXQ Svn+OAIUUeSzXI7BDIP2s8LHkoeoaDZHIjwUmd8tmPkBkShdY1FAEEmLXox1kmaS rqWqSIOioiuHV8CHfjeLp1YFTv6WJfOOZ7S+kTtOI3npr7V5KSOp0dolkOC3CCDb V1XQoDQ/Od48urx5Wo1l5c53bRcm3y5JOA0QlIlJNluIEzik1SfmkA+Jc3TyBud0 mmrOwJ+UDsh+uup7qhJYoMFQdwFDkD8aJWsHeu7K53z3nWMXclpTJtwe/munfwL5 aquagnQVZk03Knp5DodXo8gjLfQn7g/8Bg40dBbVSkc0GZtanMYP5mvVxySV6hYU SwRL7TkTy7YmeoaDzLCH+bE6kdYCPFwOwR5lCONfzl1KWa0jem4cKvdeQABdw8wF +7M/R5XaobiwehWxl1qoqej8/IRFszbOI08Tw+OFbvM7pUJqMnSx3EC7kIi7UiP2 3+1GCQLUzeQePktZbhJhJ30eHvZsdTCqup2jjtNaq7hUy3bnlUDGYwlcakMbsW2G z+6cKtK8tlDCkmGevhbatHXpqYKGb72pBSuJiLe19Q7O1roGBU67gT3JdX50qanG QLEYSKUYDT4xDjC+C0m/2LjdjB0Kflo4TbjXZmL2CqRgupcN23o= =V0+j -----END PGP SIGNATURE----- --i6/BKdm2W1x86K4G--