postgresql - Disabling WAL archiving during pg_restore? -


let's made quick backup dump of postgres 9.3 db through pg_dump before doing large destructive migration , discovered want undo it. no writes performed against db in meantime.

say run pg_restore -c -d mydb < foo.dump load dump db. assuming have wal-e set archive every 16mb of wal, need turn off archive_mode before performing restore? not super useful me archive xlog i'm writing dump db, since have valid base backups , wal segments archived before dump. there serious consequences performing xlog shipping i'm restoring dump, worse size of dump.

do end disabling archiving before restore? do else speed things up? there's discussion of restore performance in post, doesn't cover archiving @ all, unless missed something.

you can't turn wal archiving on , off that. wal replay requires continuity.

if turned wal archiving off, made changes, turned on, new wal generated after turning off , on again useless. not applied db, , you'll have make new base backup before can resume wal replay / pitr.

if turn xlog shipping off during restore, you'll want purge old base backup , wal archives, create new base backup before resuming wal shipping.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -