Search Postgresql Archives

Re: Drop Default Privileges?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



вт, 19 июн. 2018 г. в 21:32, Pavan Teja <pavan.postgresdba@xxxxxxxxx>:
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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux