DROP ROLE as SUPERUSER

From: Dominique Devienne <ddevienne(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: DROP ROLE as SUPERUSER
Date: 2025-02-20 15:48:20
Message-ID: CAFCRh-_3+E3-pmdH+i5jUE-8Z1jJWxxdP3EcFjTbHVWM+oEweg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi. Today I was surprised that REVOKE ALL ON DATABASE FROM ROLE silently
did nothing, even with CASCADE, when I was running it as SUPERUSER,
preventing DROP'ing the ROLE. I had to manually SET ROLE to the GRANTOR, do
the REVOKE, which DID something this time, and then I could DROP the role.

That's hardly convenient :). And I was helping someone else who couldn't
figure out how to drop that role. Isn't there a better way?

I thought SUPERUSER was more powerful that than. Why isn't it?

Thanks, --DD

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2025-02-20 15:55:21 Re: DROP ROLE as SUPERUSER
Previous Message Dominique Devienne 2025-02-20 15:43:12 Re: #XX000: ERROR: tuple concurrently updated