postgresql_16:7.3.2.5 Examples
PostgreSQL 16 > Reference > PostgreSQL Server Applications > pg_archivecleanup > Examples
On Linux or Unix systems, you might use: archive_cleanup_command = 'pg_archivecleanup -d /mnt/standby/archive %r 2>>cleanup.log' where the archive directory is physically located on the standby server, so that the archive_command is accessing it across NFS, but the files are local to the standby. This will:
- produce debugging output in
cleanup.log - remove no-longer-needed files from the archive directory