Answer the question
In order to leave comments, you need to log in
How to make PostgreSQL backup account work?
I made a batch file for backup using pg_dump. Everything works for the superuser, but you have to store the superuser password in text form in the batch file. I tried to create a backup user with the "REPLICATION" parameter.
CREATE ROLE postbackup LOGIN
ENCRYPTED PASSWORD '########################'
NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE REPLICATION;
pg_dump: [archiver (db)] query failed: ERROR: permission denied for relation _yearoffset
pg_dump: [archiver (db)] query was: LOCK TABLE public._yearoffset IN ACCESS SHARE MODE
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question