官网用法:html
https://www.postgresql.org/docs/9.6/static/pgarchivecleanup.htmlsql
用法简介:post
-rw-------. 1 postgres postgres 16777216 Dec 20 06:59 000000050000011200000045 -rw-------. 1 postgres postgres 167 Dec 13 15:52 00000005.history [postgres@sds1 archivedir]$ pg_archivecleanup ./ 000000050000011200000045// 会删除全部早于000000050000011200000045的归档日志