AW: Which commands are guaranteed to drop role

Поиск
Список
Период
Сортировка
От Zwettler Markus (OIZ)
Тема AW: Which commands are guaranteed to drop role
Дата
Msg-id 870a9d9724a243acb50d162304333865@zuerich.ch
обсуждение исходный текст
Ответ на Re: Which commands are guaranteed to drop role  (Laurenz Albe <laurenz.albe@cybertec.at>)
Список pgsql-general
> -----Ursprüngliche Nachricht-----
> Von: Laurenz Albe <laurenz.albe@cybertec.at>
> Gesendet: Sonntag, 12. April 2020 22:09
> An: Andrus <kobruleht2@hot.ee>; pgsql-general <pgsql-general@postgresql.org>
> Betreff: Re: Which commands are guaranteed to drop role
> 
> On Sun, 2020-04-12 at 00:25 +0300, Andrus wrote:
> > User "currentuser"  tries to delete role "roletodelete" from this
> > database using
> >
> > But got error
> >
> > ERROR: role "roletodelete" cannot be dropped because some objects
> > depend on it
> > DETAIL: privileges for schema public;
> >
> > How to create script which  is guaranteed to delete role ?
> 
> You cannot write such a script, but you will have to REVOKE and change
> ownership and ALTER DEFAULT PRIVILEGES until no more dependencies on the
> role exist.
> 
> That is why you are well advised not to grant permissions to a role that you plan to
> drop.
> 
> Yours,
> Laurenz Albe
> --
> Cybertec | https://www.cybertec-postgresql.com
> 
> 



Is there a query to get all missing privileges not revoked yet?

Markus



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

Предыдущее
От: Olivier Gautherot
Дата:
Сообщение: Re: Using Oracle SQL Client commands with PSQL 12.2 DB
Следующее
От: Ц
Дата:
Сообщение: Invalid name syntax on to_regrole(session_user)