Previously, the server was configured to hot_standby master. After a while he began to work alone. I changed the settings according to it, but the amount of WAL files is still growing ...
How to get rid of it?
OS - CentOS
postgresql.conf
:
listen_addresses = '192.168.1.24,localhost'
max_connections = 100
shared_buffers = 32MB
wal_level = minimal
archive_mode = off
archive_command = 'test ! -f /var/lib/pgsql/docsrv/pgarch/%f && cp %p /var/lib/pgsql/docsrv/pgarch/%f'
max_wal_senders = 1
log_destination = 'syslog'
log_timezone = 'Europe/Samara'
update_process_title = off
datestyle = 'iso, mdy'
timezone = 'Europe/Samara'
lc_messages = 'C'
lc_monetary = 'C'
lc_numeric = 'C'
lc_time = 'C'
default_text_search_config = 'pg_catalog.english'