PostgreSQL 9.1, how to restore a Hot Standby Slave w/o any Wal Files

postgresqlpostgresql-9.1

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

Best 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.