I am using a replication slot, streaming replication for a standby server. pg_xlog file is growing crazy. I have checked max_wal_size and wal_keep_segment configurations, they all looked reasonable. Is there a way to removed applied logs ?
# - 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
and when i try too see checkpoint_segments;
postgres=# show checkpoint_segments;
ERROR: unrecognized configuration parameter "checkpoint_segments"
last logs from the standby might be relevant;
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$