Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I have a PostgreSQL 9.1 hot standby slave that had all of its wal files removed. How can I restart the standby server and have the slave resync from the master? Thanks

share|improve this question
3  
I'm sure someone will be along with a full answer, but in brief you'll need to take a new base-backup if you've not got the WAL files required. –  Richard Huxton Feb 11 '13 at 9:03
add comment

migrated from stackoverflow.com Feb 11 '13 at 12:46

This question came from our site for professional and enthusiast programmers.

1 Answer

If the WAL files don't exist anymore anywhere, you need to rebuild the standby from scratch (new base backup). If you still have the WAL files on the master or in an archive somewhere, just change the restore_command in recovery.conf to fetch them from wherever they are.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.