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. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

migrated from Feb 11 '13 at 12:46

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

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

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

Your Answer


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.