I have set up two servers running Postgres 9.1, with one configured as a hot standby for the other using streaming replication. Given that, is there any reason for me to be archiving my WAL files?

I'm aware that the archived WAL files allow me to "go back in time" to a previous snapshot of the database, but for my particular application, I have no need for such a feature as long as my standby is ok. Are there any other reasons to keep them?


If the only reason you're keeping the WAL files is for replication and not backup, then no, you don't need to keep them once they've been fully incorporated into the secondary server. My understanding is that archive_cleanup_command should be handling this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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