Skip to content

Troubleshooting "permission denied for database postgres" #3784

Answered by laurenceisla
kjcsb1 asked this question in Q&A
Discussion options

You must be logged in to vote

permission denied for database postgres

It looks to me that the user does not have connection permissions to the database. Perhaps it has to do with a pg_dumpall option (e.g. the -x option does not migrate privileges). Check if you you can connect to the database with psql and your "authenticator" user.

If not, try granting connection privileges and such:

GRANT CONNECT ON DATABASE postgres TO your-authenticator;

If that's so, check if your pg_dumpall is migrating the permissions correctly.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kjcsb1
Comment options

Answer selected by kjcsb1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants