Multiple bugs in PostgreSQL hook
Closedopened 2 months ago by witten · 2 comments
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
What I'm trying to do and why
Use the PostgreSQL hook to backup my databases with borgmatic, so I don't have to dump them manually.
Steps to reproduce / actual behavior
Separate bugs, each with the repro and the observed behavior:
These commands are executed without
shell=True, so the subprocess
module treats e.g.
docker exec my_pg_container psqlas a single command
Errno 2 "No such file or directory") instead of a command
Some settings in user's
linestyle unicode, may break the
psqlto not read this startup file.
This is not necessary for the analyze_command and restore_command (with
all_databases), but it's generally recommended when running psql from a
psql_commandoption for listing databse when dumping
Unknown. This ticket was created from commit messages in this PR: #677
Fixed in main by @jirutka. Will be part of the next release.
This was just released in borgmatic 1.7.13!