I'm having the same problem. In my case, and as recommended in the official documentation, my archive command checks that the file exists first, before archiving it:After a successful recovery, the last WAL file replayed from the base archive is still in the pg_xlog directory, so when it tries to archive it, it fails:Is this a expected behaviour? Or should the px_log directory be cleaned-up again on recovery_end_command ?Cheers
-- View this message in context: http://postgresql.1045698.n5.nabble.com/PostgreSQL-archiving-last-replayed-WAL-after-recovery-tp5752831p5762234.html Sent from the PostgreSQL - general mailing list archive at Nabble.com.