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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s