作者:瀚高PG实验室 (Highgo PG Lab)
官网用法:
https://www.postgresql.org/docs/9.5/static/pgarchivecleanup.html
用法简介:
-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的归档日志
本文介绍如何使用pg_archivecleanup命令来清理PostgreSQL数据库中早于指定文件的所有归档日志,确保数据库维护工作的顺利进行。
1423

被折叠的 条评论
为什么被折叠?



