Home > OS >  PostgreSQL: How to view current "grant usage on schema" permissions?
PostgreSQL: How to view current "grant usage on schema" permissions?

Time:07-02

Is there a system view in Postgres where I can see which users/roles have "grant usage" and on which schema?

CodePudding user response:

The grants are stored in ACLs (=Access Control Lists) for each schema. You can view them by looking a pg_namespace

select nspname, nspacl 
from pg_namespace

The format of the acl is explained in the manual

  • Related