我正在使用复制插槽,为备用服务器进行流复制。 pg_xlog文件越来越疯狂了。我检查了max_wal_size和wal_keep_segment配置,它们看起来都很合理。有没有办法删除应用的日志?
# - Checkpoints -
#checkpoint_timeout = 5min # range 30s-1h
max_wal_size = 2GB
min_wal_size = 1GB
checkpoint_completion_target = 0.7
# checkpoint target duration, 0.0 - 1.0
#checkpoint_warning = 30s
# 0 disables
当我尝试时也看到checkpoint_segments;
postgres=# show checkpoint_segments;
ERROR: unrecognized configuration parameter "checkpoint_segments"
来自备用数据库的最后日志可能是相关的;
2017-03-08 15:13:18 +03 [43578-3] postgres@e ERROR: current
transaction is aborted, commands ignored until end of transaction block
2017-03-08 15:13:18 +03 [43578-4] postgres@e STATEMENT: SELECT NULL AS TABLE_CAT, n.nspname AS TABLE_SCHEM, c.relname AS TABLE_NAME, CASE n.nspname ~ '^pg_' OR n.nspname = 'information_schema' WHE$