postgresql check privileges on schema

Solutions on MaxInterview for postgresql check privileges on schema by the best coders in the world

showing results for - "postgresql check privileges on schema"
Dante
08 Jun 2016
1GRANT SELECT ON ALL TABLES IN SCHEMA PUBLIC TO testuser2;
Gabriela
07 May 2016
1WITH "names"("name") AS (
2  SELECT n.nspname AS "name"
3    FROM pg_catalog.pg_namespace n
4      WHERE n.nspname !~ '^pg_'
5        AND n.nspname <> 'information_schema'
6) SELECT "name",
7  pg_catalog.has_schema_privilege(current_user, "name", 'CREATE') AS "create",
8  pg_catalog.has_schema_privilege(current_user, "name", 'USAGE') AS "usage"
9    FROM "names";
10