public inbox for [email protected]  
help / color / mirror / Atom feed
From: Dominique Devienne <[email protected]>
To: David G. Johnston <[email protected]>
Cc: Tom Lane <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: DROP ROLE as SUPERUSER
Date: Fri, 21 Feb 2025 16:02:24 +0100
Message-ID: <CAFCRh-8GyM9Vmz68CuuvZv9XC6PKr+1MdOHnys_3kk5qKFFZUA@mail.gmail.com> (raw)
In-Reply-To: <CAKFQuwZcL+FUWkjcErDLAdi-+6hBWHMPMRa93kp0zCaidiXErg@mail.gmail.com>
References: <CAFCRh-_3+E3-pmdH+i5jUE-8Z1jJWxxdP3EcFjTbHVWM+oEweg@mail.gmail.com>
	<CAKFQuwb-pHsxJF22fAp2Vb1jwbQxTVxXhuLzjaocsB5LEUEb5w@mail.gmail.com>
	<[email protected]>
	<CAKFQuwa4iiw9zei549ROy1VaWTWT5dM1Ubw9aH7TdmbQS2iiGw@mail.gmail.com>
	<[email protected]>
	<CAFCRh-9fRoVj6WhekQ2+E3riS6TC4HWHJJ4w8cJp=wFf3Q0NAw@mail.gmail.com>
	<[email protected]>
	<CAFCRh--+406OqvQv60Yt9DXzS2cy9EN9Gz4hUx7sVKT9Ui7afQ@mail.gmail.com>
	<CAKFQuwZcL+FUWkjcErDLAdi-+6hBWHMPMRa93kp0zCaidiXErg@mail.gmail.com>

On Fri, Feb 21, 2025 at 3:45 PM David G. Johnston <
[email protected]> wrote:

> On Friday, February 21, 2025, Dominique Devienne <[email protected]>
> wrote:
>
>> On Fri, Feb 21, 2025 at 3:33 PM Tom Lane <[email protected]> wrote:
>>
>>> Dominique Devienne <[email protected]> writes:
>>> > The point I'm trying to make, is that "hunting down" grantor(s) to
>>> connect
>>> > to DB(s) to be able to "force drop" a ROLE is a PITA. And I really wish
>>> > there
>>> > was an easier way to drop a role in that situation. --DD
>>>
>>> REASSIGN OWNED then DROP OWNED is the recommended path.
>>>
>>
>> Hi. Am I missing something? foobar does not OWN anything in this case.
>> So I don't see how these recommendations are relevant to this particular
>> case. --DD
>>
>
> From “drop owned”:
>
>  Any privileges granted to the given roles on objects in the current
> database or on shared objects (databases, tablespaces, configuration
> parameters) will also be revoked.
>
> So, the command does more than the name suggests.
>

OK, thanks Tom and David. I was misled by the name indeed. --DD


view thread (8+ messages)  latest in thread

reply

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: DROP ROLE as SUPERUSER
  In-Reply-To: <CAFCRh-8GyM9Vmz68CuuvZv9XC6PKr+1MdOHnys_3kk5qKFFZUA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox