Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
wireprotocol
· 6y ago · 0 comments
Are you using pg_dump or pg_dumpall? The latter will backup the global objects (like roles) as well.
https://www.postgresql.org/docs/current/app-pg-dumpall.html
Comments
[–]
stilist
6y ago
An alternative, which I think I borrowed from how Heroku does/did dumps, is 'pg_dump --no-acl --no-owner'.