>...I'd like to have the wal_files stored for 24h, and then the pg_archivecleanup could do its job and delete the files..You cannot do that, but you can change the wal_keep_segments on the master and reload the postgresql.conf.https://www.postgresql.org/docs/9.4/static/runtime-config-replication.html#GUC-WAL-KEEP-SEGMENTS
wal_keep_segments = 256
Please, in the future, remember to state your PostgreSQL version and O/S as options can change.
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных