Is there a query I can run to show currently assigned privileges on a particular schema?
i.e. privileges that were assigned like so:
GRANT USAGE ON S
Even more concisely, one can do:
SELECT n.nspname AS schema_name FROM pg_namespace n WHERE has_schema_privilege('my_user',n.nspname, 'CREATE, USAGE');