Re: Superuser can't revoke role granted by non-superuser - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Superuser can't revoke role granted by non-superuser
Date
Msg-id 391919.1737988993@sss.pgh.pa.us
Whole thread Raw
In response to Re: Superuser can't revoke role granted by non-superuser  (Alexander Kukushkin <cyberdemn@gmail.com>)
List pgsql-bugs
Alexander Kukushkin <cyberdemn@gmail.com> writes:
> E.g. superuser is supposed to use "revoke bb from aa granted by b"

Exactly.  This is not a bug, you just did not correctly name the
privilege you're trying to revoke.

If memory serves, the default behavior for a superuser is that
we'll revoke the privilege as granted by the object owner, since
that's the most common case.  For everyone else, the default
assumption about "granted by" is "yourself".  Some edge cases
about this might have changed in v16, not sure.

            regards, tom lane



pgsql-bugs by date:

Previous
From: Alexander Kukushkin
Date:
Subject: Re: Superuser can't revoke role granted by non-superuser
Next
From: Laurenz Albe
Date:
Subject: Re: PostgreSQL 17.2 servers crashing due to segmentation faults on query execution