0
点赞
收藏
分享

微信扫一扫

调整 PG 配置参数, 设置为保留一周的日志


调整 PG 配置参数, 设置为保留一周的日志,

  • 方法:

  log_filename = 'postgresql-%u.log' 
log_truncate_on_rotation = on

  • 效果如下:%u表示星期几(取值1-7)

    postgresql-1.log
postgresql-2.log
postgresql-3.log
postgresql-4.log
postgresql-5.log
postgresql-6.log
postgresql-7.log


举报

相关推荐

一周的总结

开学前的一周

一周算法(22.2.20)

又是一周总结

一周学习总结

第一周

学习了一周的HTML

关于这一周的总结

0 条评论