PostgreSQL: Permission denied for relation

This error message is caused because the user does not have access to the database object. This should fix that, in the case of tables and privileges:

GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA schemaName TO user;
GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA schameName TO user;

Advertisements