2021
01-17
01-17
postgresql 切换 log、xlog日志的实现
os:centos7.4db:postgresql9.6切换log:selectpg_rotate_logfile();切换xlog:selectpg_switch_xlog();补充:postgresql流复制主从切换+resetxlog主192.168.3.46从192.168.3.47现象:由于46主库的xlog日志达到7T以上,磁盘空间不足,需要通过pg_resetxlog命令清日志。解决:1.修改postgresql参数checkpoint_timeout=60min#range30s-1dmax_wal_size=4GBmin_wal_size=1GBcheckpoint_completion_target=0.9wal...
继续阅读 >