From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dominique Devienne <ddevienne@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Trouble DROP'ing a ROLE, despite REVOKE'ing its privileges
Date: Wed, 05 Jan 2022 13:26:25 -0500
Message-ID: <792111.1641407185@sss.pgh.pa.us> (raw)
In-Reply-To: <CAFCRh-9-VLhZFtocQaPOz5At3tAxUgivie8K5Dq8b=kNJ1EGXw@mail.gmail.com>
References: <CAFCRh-9-VLhZFtocQaPOz5At3tAxUgivie8K5Dq8b=kNJ1EGXw@mail.gmail.com>
Dominique Devienne <ddevienne@gmail.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, ddevienne@gmail.com
Subject: Re: Trouble DROP'ing a ROLE, despite REVOKE'ing its privileges
In-Reply-To: <792111.1641407185@sss.pgh.pa.us>
References: <CAFCRh-9-VLhZFtocQaPOz5At3tAxUgivie8K5Dq8b=kNJ1EGXw@mail.gmail.com> <792111.1641407185@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox