Re: Latest patches break one of our unit-test, related to RLS

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Dominique Devienne <ddevienne(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Latest patches break one of our unit-test, related to RLS
Date: 2025-09-12 12:45:56
Message-ID: 77a63548783dd4007ee479a4c5ed300629aaa776.camel@cybertec.at
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 2025-09-12 at 14:22 +0200, Dominique Devienne wrote:
> On Thu, Sep 4, 2025 at 5:03 PM Dominique Devienne <ddevienne(at)gmail(dot)com> wrote:
> > OK with 16.9 and 17.5 (we cannot test on beta2 anymore)
> > KO with 16.10 and 17.6 (and beta3 too, released at the same time)
>
> I've tracked down the regression to this particular query, FWIW:
>
> select rolname, rolsuper, rolinherit, rolcreaterole,
> rolcreatedb, rolcanlogin, rolreplication, rolbypassrls,
> oid, shobj_description(oid, 'pg_authid')
> from pg_roles
> where rolname SIMILAR TO $1 AND pg_has_role(oid, 'SET')
> order by rolname
>
> In 17.5, returns 3 rows.
> In 17.6, returns 0 rows.

That must be commit e3ffc3e91d.

That commit fixed a bug in the conversion from SIMILAR TO
expressions to POSIX regular expressions.

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.

Minor releases shouldn't change the behavior EXCEPT when the
behavior is buggy.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dominique Devienne 2025-09-12 13:11:10 Re: Latest patches break one of our unit-test, related to RLS
Previous Message Dominique Devienne 2025-09-12 12:22:54 Re: Latest patches break one of our unit-test, related to RLS