Re: Drop role cascade ?

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Drop role cascade ?
Date: 2022-11-17 23:44:51
Message-ID: 165fba28-443f-c981-ba06-a996b8c81969@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/17/22 17:16, Tom Lane wrote:
> David Gauthier <dfgpostgres(at)gmail(dot)com> writes:
>> Someone who had privileges in a lot of tables/schemas/DBs left the
>> company. I want to drop that role but "rop role xxx" won't let me
>> because... "xxx cannot be dropped because some objects depend on it".
>> Is there a way to just get rid of this role without revoking xxx in all
>> the individual DB objects he has privs too? Something like "drop role xxx
>> cascade" ?
> Not directly, but see REASSIGN OWNED and DROP OWNED.

SIMULATE and VERBOSE options would be handy, to see what those commands
would actually do.

--
Angular momentum makes the world go 'round.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Murillo corvino rocha 2022-11-17 23:53:18 RES: session_user different from current_user after normal login
Previous Message Tom Lane 2022-11-17 23:16:56 Re: Drop role cascade ?