Merge pull request #167 from trengrj/limit-schema

Only view schema with USAGE privileges
This commit is contained in:
Dan Sosedoff
2016-09-01 09:56:46 -05:00
committed by GitHub

View File

@@ -149,6 +149,7 @@ LEFT JOIN
WHERE
c.relkind IN ('r','v','m','S','s','') AND
n.nspname !~ '^pg_toast' AND
n.nspname NOT IN ('information_schema', 'pg_catalog')
n.nspname NOT IN ('information_schema', 'pg_catalog') AND
has_schema_privilege(n.nspname, 'USAGE')
ORDER BY 1, 2`
)