Re: Drop Default Privileges?

Поиск
Список
Период
Сортировка
От Victor Yegorov
Тема Re: Drop Default Privileges?
Дата
Msg-id CAGnEboiYLFrieaNfxOcUtobEwy0f=05MiGgW4fv187NWmE4d_g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Drop Default Privileges?  (Pavan Teja <pavan.postgresdba@gmail.com>)
Список pgsql-general
вт, 19 июн. 2018 г. в 21:32, Pavan Teja <pavan.postgresdba@gmail.com>:
In order to remove the default privileges for any particular user/role, we should know the list of default privileges. 

`psql` allows you to check default privileges via `\ddp` command (per database). You can start `psql` with `-E` switch that will show you internal queries used for displaying this information, or you can `\set ECHO_HIDDEN on` with the same effect.

Also, you can do `pg_dumpall -s | grep -E 'DEFAULT PRIVILEGE|\\connect' and it'll produce a list of all entries for all databases, along with database name.


--
Victor Yegorov

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

Предыдущее
От: Pavan Teja
Дата:
Сообщение: Re: Drop Default Privileges?
Следующее
От: Victor Yegorov
Дата:
Сообщение: Re: Drop Default Privileges?