Re: Drop role cascade ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Drop role cascade ?
Дата
Msg-id 2058701.1668727016@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Drop role cascade ?  (David Gauthier <dfgpostgres@gmail.com>)
Ответы Re: Drop role cascade ?  (Ron <ronljohnsonjr@gmail.com>)
Список pgsql-general
David Gauthier <dfgpostgres@gmail.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.

            regards, tom lane



В списке pgsql-general по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Drop role cascade ?
Следующее
От: Ron
Дата:
Сообщение: Re: Drop role cascade ?