Is there a way to revoke access rights to directory objects (e.g. information_schema) and PostgreSQL (i.e. pg_catalog)? I tried several things and cleaned the net. I was not lucky. The only thing I read is partially useful, since I may not want to remove the βpublicβ from the system tables if user-defined functions rely on an object in one of these schemes. The commands below are a small snapshot of what I did not work except for one table.
REVOKE ALL PRIVILEGES ON SCHEMA pg_catalog FROM PUBLIC;
REVOKE ALL PRIVILEGES ON SCHEMA pg_catalog FROM public;
REVOKE ALL PRIVILEGES ON SCHEMA pg_catalog FROM user1;
REVOKE SELECT ON pg_catalog.pg_roles FROM user1;
REVOKE SELECT ON pg_catalog.pg_database FROM user1;
REVOKE ALL PRIVILEGES ON SCHEMA pg_catalog FROM g_users;
REVOKE SELECT ON pg_catalog.pg_database FROM g_users;
Any ideas? Or is it simply impossible? Thanks...
Leslie
source
share