Drop role cascade ?

From: David Gauthier <dfgpostgres(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Drop role cascade ?
Date: 2022-11-17 23:07:50
Message-ID: CAEs=6D=z_1f_FNS6NxYOpS-M8HrrKLmSoM=UY3yA6dznOivt0Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

psql (11.5, server 11.3) on linux

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" ?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2022-11-17 23:16:24 Re: Drop role cascade ?
Previous Message Adrian Klaver 2022-11-17 22:54:46 Re: RES: session_user different from current_user after normal login