My /pgsql/14/main/pg_wal directory is filling up. The server is not respecting the wal_keep_size = 100GB. I have no replication slots in this server, and I have already restarted PostgreSQL.
I don’t know what else to look for. Would appreciate any help.
data_directory = '/pgsql/14/main'
hba_file = '/etc/postgresql/14/main/pg_hba.conf'
ident_file = '/etc/postgresql/14/main/pg_ident.conf'
external_pid_file = '/var/run/postgresql/14-main.pid'
unix_socket_directories = '/var/run/postgresql'
ssl_cert_file = '/etc/ssl/certs/ssl-cert-snakeoil.pem'
ssl_key_file = '/etc/ssl/private/ssl-cert-snakeoil.key'
maintenance_work_mem = 960MB
shared_preload_libraries = 'pg_stat_statements'
pg_stat_statements.track = all
track_activity_query_size = 102400
synchronous_standby_names = '*'
max_parallel_workers_per_gather = 1
max_parallel_maintenance_workers = 1
max_replication_slots = 15
hot_standby_feedback = on
restore_command = 'cp /data/wal_archive/%f %p'
checkpoint_completion_target = 0.9
archive_command = '/pgsql/pg-archive-wal-to-slaves.sh "%p"'
effective_cache_size = 11520MB
log_directory = '/data/postgresql/log'
log_filename = 'postgresql.log.%a'
log_truncate_on_rotation = on
log_min_duration_statement = 1000
log_line_prefix = '%t [%p]: [%l-1] user=%u,db=%d,app=%a,client=%h '
stats_temp_directory = '/var/run/postgresql/main.pg_stat_tmp'
log_autovacuum_min_duration = 1000
autovacuum_max_workers = 5
autovacuum_vacuum_threshold = 200
autovacuum_analyze_threshold = 150
autovacuum_vacuum_scale_factor = 0.02
autovacuum_analyze_scale_factor = 0.005
lc_messages = 'en_US.UTF-8'
lc_monetary = 'en_US.UTF-8'
lc_numeric = 'en_US.UTF-8'
default_text_search_config = 'pg_catalog.english'
max_files_per_process = 4096
effective_io_concurrency = 200
default_statistics_target = 100
max_standby_streaming_delay = 30s