I have a user test
, which can view data from the system tables such as pg_class
. The idea is to isolate him to have access to a specific database only and not have any access to system resources. The question is, how can one achieve this?
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:
Sign up
Sign up
Here's how it works:
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
|
||||
Here is the documentation: http://www.postgresql.org/docs/9.4/static/sql-grant.html I would recommend something like this -- start with no permissions, no access, and just grant the permissions you need afterward (grant select was included as an example). Note that if you are working in a non-public schema, you will probably have to grant usage on that schema before you can do anything in it (GRANT USAGE ON SCHEMA schemaname TO test). Please let me know if this doesn't work for you!
|
|||||||||
|
pg_catalog
schema? Orinformation_schema
, too? – dezso Oct 16 '15 at 13:03