1、磐维 1.0不支持pg_archivecleanup
2、目前清理归档方式一般采用 omm 用户配置定时任务的方式,参考:
crontab -e
0 */2 * * * sh /home/omm/move_and_clear_archive.sh 9
贡献一下脚本供参考:
#!/bin/bash
fnum=$1
echo "begin to clear archive log..."
find /archive -mtime +${fnum} -type f -name "0000*" | xargs rm -f
echo "archive files clean successfully"
有用 0