简体   繁体   中英

PostgreSQL said: permission denied for schema

I have a multi-tenant PostgreSQL db on a Ruby on Rails app, and when I try to access to tables on some schemas on Postico, I get the following error:

Failed to load table schema.
Query failed
PostgreSQL said: permission denied for schema coaching

I tried to run: GRANT USAGE ON SCHEMA "lacerba-api" TO "postico7" but I get ERROR: permission denied for schema lacerba-api

Of course my user have writing permission on the db.

Any idea how to solve it?

My guess is that your user doesn't have permission to read tables in the coaching schema. You can try granting your user permission to read tables in that schema:

GRANT SELECT ON SCHEMA coaching TO postico7

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM