This keeps 000000010000000000000005 and any higher-numbered files, and deletes 000000010000000000000001 through 000000010000000000000004 .
: Instead of a simple -n (dry run), this mode would display the oldest file, the newest file, and the calculated cutoff, asking the user for confirmation before proceeding. Current Workarounds pg-archivecleanup must specify oldest kept wal file
ls -l /var/lib/pgsql/archive/
This feature would allow pg_archivecleanup to automatically determine the oldestkeptwalfile based on high-level policies rather than a specific filename. 1. Retention Policy Flags the newest file
pg_archivecleanup /path/to/archive pg_archivecleanup /path/to/archive --verbose and the calculated cutoff
Newsletter Anmeldung