Re: Trouble DROP'ing a ROLE, despite REVOKE'ing its privileges

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dominique Devienne <ddevienne(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Trouble DROP'ing a ROLE, despite REVOKE'ing its privileges
Date: 2022-01-05 18:26:25
Message-ID: 792111.1641407185@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dominique Devienne <ddevienne(at)gmail(dot)com> writes:
> Final step is to DROP the "owner" ROLE itself, but before doing that,
> I run REVOKE ALL ON DATABASE "ddevienne" FROM "owner".

That will only revoke privileges that were granted by the role
doing the REVOKE, so I surmise that you did this as some other role.
But actually capturing the DB's privileges at the point where the
DROP ROLE is failing would help you debug.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2022-01-05 19:04:26 Re: Trouble DROP'ing a ROLE, despite REVOKE'ing its privileges
Previous Message Rob Sargent 2022-01-05 18:10:27 Re: Trouble DROP'ing a ROLE, despite REVOKE'ing its privileges