I am setting up a PostgreSQL (9.3) standby server in Streaming replication.
I configured the recovery.conf file and everything working well a part of the archive_cleanup_command.
If you don't need PITR, avoid archive shipping. Streaming is recommended [#personalOpinion].
Yes, I Agree, but could be useful to troubleshoot the issue.
The WAL files shipped from the master to the temporary folder with the archive_command are correctly saved, but are never deleted from the slave server.
How are you shipping the WAL from master to temporary location? your archive_command on Master is set to use rsync or scp or ftp to ship wal files?
the archive command is a cp command: 'test ! -f /bigpart/local/incoming/%f && cp %p /bigpart/local/incoming/%f && chmod a+rx /bigpart/local/incoming/%f'
I modified the command in the recovery.conf as follow, but no changes and no entry in the log file: archive_cleanup_command = '/usr/pgsql-9.3/bin/pg_archivecleanup /mnt/db1_incoming_wals %r 2>>/tmp/archive_cleanup.log'