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 1ux3mb-00AKfd-R6 for pgsql-general@arkaria.postgresql.org; Fri, 12 Sep 2025 13:25:45 +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 1ux3lb-001802-5d for pgsql-general@arkaria.postgresql.org; Fri, 12 Sep 2025 13:24:43 +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 1ux3la-0017zp-Qi for pgsql-general@lists.postgresql.org; Fri, 12 Sep 2025 13:24:43 +0000 Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1ux3lZ-0002My-1E for pgsql-general@postgresql.org; Fri, 12 Sep 2025 13:24:42 +0000 Received: by mail-ot1-x332.google.com with SMTP id 46e09a7af769-74526ca79beso1719613a34.0 for ; Fri, 12 Sep 2025 06:24:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757683480; x=1758288280; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Dy6IHPKj7shq7NuQcoSUvBZhOW4Jfdm3pFsC74yj1/g=; b=PPFhDuPS5nnmydrgHbz/dDZZF26rNyd8i3t7TR3lCdEhVYC16cjef2AT++EKrj+SbU kyiWOxPFte/yrP2QXKNBFf9gadCQy9GHCT0x7AgaNWKGyz8099/PextnaDX0ZZ/nx67s 2vmZa2GrV5eyF2XbniT/Q4WZPaMDS8eBFs1J7JM0IM3I11LAHn7P1WGKV0kcQS3caLSp SXVOLR2Sbj1yynf40MvunXv4Th7hjZklFudCb3DvJkqQFw0BQlUxorMRh7L8RTjB3Cae 5qf+vJZbpwJl21dQaI0u5lbEdzVXxd2ZbBNarPAfHuNjaMOyPDAUS7+Apns37FjZk22K 3ndQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757683480; x=1758288280; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Dy6IHPKj7shq7NuQcoSUvBZhOW4Jfdm3pFsC74yj1/g=; b=G8dOJu9E44fAs4ihwtc205M1Nusm6prTOso3YfzuezVWrtzUqClNmJ/pWM3GHuQUKJ gOcTLfmE84HEkNq3xRT65v/ayEijb8g1USUs2Z+nFZjeFNK698FEGgjmCYM/pQ7qxIgT yhkyc0/6KVlkGvzDbzIgMzl+nd/O/z8c/KiViBJBA5z+AvKJSNdTbdCM0kjW771PXMvR 1r3uTnt0lmxzkzXcfYiNb/JOY/AV0MhUO0qQEk1hwjq5WKrqhnHvzcKC196YaRApvkBn N3Kwxl4+TFFsIWtrPthxu4R0j4V5t8O9vrxbEGOXH45juCka7tZHI0ir5WJiDI2/pYtm 2Uaw== X-Gm-Message-State: AOJu0Yzne2EA8rzd9erKSZB7Xc/LIVVHaiFA0Xh8Wm7aSQyXC5Aib1G9 N8Z2oU4SLqysLM7Yfxb/lHtPsmw91V5NaowycCZrClwoBF/xDg9GG2koSZW174NakSyxjjNhKfq TvH6q8RBdzp/7mMWbujyOdHZH9xN1Gg0VtIP1 X-Gm-Gg: ASbGncswXsahFsdQK44Vak7B0GvWPyymQYF7SpsAD8/2cdCIlQfSdqM659wP7WgQqi6 tedo+7+K+Sds7opC3pPM30cLESQesLnMGel8XU3JsFWi2XWUaEpduHHV8BbwV7GZe+KOneHzOrO oNaPWoofYkOcALBAwzelkNQ361dy0qCSsliyC40mNgwbUshJoHhk6ZEBTvLsJ9s8PNw+czne07F +nrwa893CifU6R7MY9n X-Google-Smtp-Source: AGHT+IFIDOjnCTp52wtr0BDG/uG06PT+DB6ZiXb/tLnWjchL3EVdDgdbC/XYw9aBYAAjunYVS8UpSx5B3wE2u/4Sktw= X-Received: by 2002:a05:6808:2e48:b0:438:3cb9:920e with SMTP id 5614622812f47-43b8d9a8997mr1578451b6e.28.1757683480473; Fri, 12 Sep 2025 06:24:40 -0700 (PDT) MIME-Version: 1.0 References: <77a63548783dd4007ee479a4c5ed300629aaa776.camel@cybertec.at> In-Reply-To: From: Dominique Devienne Date: Fri, 12 Sep 2025 15:24:29 +0200 X-Gm-Features: Ac12FXy3v3waSUCZerTs53Jja4mmsnyuoovsP5tOB-DU6rJ17Wy54JoBGe_RnKs Message-ID: Subject: Re: Latest patches break one of our unit-test, related to RLS To: Laurenz Albe Cc: pgsql-general@postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Sep 12, 2025 at 3:11=E2=80=AFPM Dominique Devienne wrote: > On Fri, Sep 12, 2025 at 2:45=E2=80=AFPM Laurenz Albe wrote: > > You don't show us that data that match the pattern in 17.5, but > > not in 17.6. Unless you show us a counterexample, I'd say that > > the behavior in 17.6 is correct. I've reread https://www.postgresql.org/docs/current/functions-matching.html= #FUNCTIONS-SIMILARTO-REGEXP and especially: > According to the SQL standard, omitting ESCAPE means there is no escape c= haracter (rather than defaulting to a backslash), and a zero-length ESCAPE = value is disallowed. PostgreSQL's behavior in this regard is therefore slig= htly nonstandard. and also > Another nonstandard extension is that following the escape character with= a letter or digit provides access to the escape sequences defined for POSI= X regular expressions; see Table 9.20, Table 9.21, and Table 9.22 below. Table 9.21. Regular Expression Class-Shorthand Escapes \d matches any digit, like [[:digit:]] \w matches any word character, like [[:word:]] So I don't see how my `... where v similar to 'foo[\d\w]_%'` is incorrect. So again, is this a bug / regression or not? Thanks, --DD