Re: pg16 ALTER ROLE [NO]INHERIT has no effect on existing grants

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Jason Matthew <Jason(dot)Matthew(at)sas(dot)com>
Cc: "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: pg16 ALTER ROLE [NO]INHERIT has no effect on existing grants
Date: 2025-05-14 21:16:59
Message-ID: CAKFQuwa+SEAP6RMqpdgypGVOQg3Ge=7BtKy592Wtici7OmUx9w@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Wednesday, May 14, 2025, Jason Matthew <Jason(dot)Matthew(at)sas(dot)com> wrote:

> Preface-
>
> My apologies if choosing the wrong list.
>
>
Well, it’s not a bug and is documented so ultimately it is the wrong list.
Though if you fail to find the documentation as was the case here I suppose
it does look like a regression/bug…

> Investigation-
>
> Neither changelog
>
>
>
Quoting from said changelog:

-

Role inheritance now controls the default inheritance status of member
roles added during GRANT
<https://www.postgresql.org/docs/16/sql-grant.html> (Robert Haas) §
<https://postgr.es/c/e3ce2de09>

The role's default inheritance behavior can be overridden with the new GRANT
... WITH INHERIT clause. This allows inheritance of some roles and not
others because the members' inheritance status is set at GRANT time.
Previously the inheritance status of member roles was controlled only by
the role's inheritance status, and changes to a role's inheritance status
affected all previous and future member roles.

David J.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Jorge Campins 2025-05-14 21:57:45 information_schema query not working in PostgreSQL version 17
Previous Message Jason Matthew 2025-05-14 20:27:29 pg16 ALTER ROLE [NO]INHERIT has no effect on existing grants