From: | Dominique Devienne <ddevienne(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Latest patches break one of our unit-test, related to RLS |
Date: | 2025-09-12 14:28:36 |
Message-ID: | CAFCRh-9YZpmWDE0grxDGuvNY04577fDZ=O0KvkQESE4QzgmoRg@mail.gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Fri, Sep 12, 2025 at 4:07 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Dominique Devienne <ddevienne(at)gmail(dot)com> writes:
> >> This DOES look like a bug, no? I've done regexes for a long time,
> >> and these two forms should be equivalent IMHO. --DD
>
> Yeah, I agree it's busted. You can use EXPLAIN VERBOSE to see the
> translated-to-POSIX pattern, and it's wrong.
Thanks for confirming Tom.
And teaching me about that EXPLAIN VERBOSE trick.
I've worked-around that regression in our code, going to (x|y) instead.
What's weird is that those are still followed by _ and %,
just like [xy], so it's as-if seeing [\d\w], it stops converting
the pattern... Weird.
This misadventure kinda tells me I should maybe give up
on SIMILAR TO and just use ~, to bypass that conversion-to-POSIX...
--DD
From | Date | Subject | |
---|---|---|---|
Next Message | Álvaro Herrera | 2025-09-12 16:32:33 | Re: Latest patches break one of our unit-test, related to RLS |
Previous Message | Tom Lane | 2025-09-12 14:07:06 | Re: Latest patches break one of our unit-test, related to RLS |