调整 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
微信扫一扫
log_filename = 'postgresql-%u.log'
log_truncate_on_rotation = on
postgresql-1.log
postgresql-2.log
postgresql-3.log
postgresql-4.log
postgresql-5.log
postgresql-6.log
postgresql-7.log
相关推荐