Postgres SCHEMA isolation

荒凉一梦 提交于 2019-12-11 20:03:45

问题


I was wandering if it's possible to create a user on a postgres database (version higher than 8.3) which could access only a certain specified schema. The problem is, that on my database I have a few schemas. If I revoke all privileges from a certain user on all schemas except one, he can still browse the database using the i.e. PgAdmin tool. By browsing he can actually see the data structure, and all the functions although he cannot query anything. Is the kind of schema isolation, in which certain user wouldn't be able to know if the other schemas exist possible in Postgres database at all?

Thx!


回答1:


No, there is no way to hide the existence of objects inside a database completely - just the access to them. If you need to hide the data structure (for some reason), you will need to use different databases.



来源:https://stackoverflow.com/questions/1487678/postgres-schema-isolation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!