4

I wonder if there is a possibility to hide tables from a certain user, not just revoking access to them.

Basically what needs to be done is to grant a user read-only access to the DB, but hide some tables from him.

I tried to revoke all privileges from schema public but to no avail.

1

2 Answers 2

2

So far you can not hide Postgres System Catalogs. Meaning you can not hide metadata.

The user can still see the structure, but can not access them if not granted access.

Sign up to request clarification or add additional context in comments.

Comments

0

If you want to grant specific permissions to specific users you can use VIEWS.

https://www.tutorialspoint.com/postgresql/postgresql_views.htm

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.