Re: why wal_max_size does not work? - Mailing list pgsql-bugs

From Sergei Kornilov
Subject Re: why wal_max_size does not work?
Date
Msg-id 5880831585051990@vla1-0bfbe4c1c324.qloud-c.yandex.net
Whole thread Raw
In response to why wal_max_size does not work?  (Fan Liu <fan.liu@ericsson.com>)
Responses RE: why wal_max_size does not work?  (Fan Liu <fan.liu@ericsson.com>)
List pgsql-bugs
Hello

max_wal_size is not the upper limit for pg_wal. Postgresql does not have upper limit for pg_wal at all. This is
documented:

https://www.postgresql.org/docs/10/runtime-config-wal.html
> Maximum size to let the WAL grow to between automatic WAL checkpoints. This is a soft limit; WAL size can exceed
max_wal_sizeunder special circumstances, like under heavy load, a failing archive_command, or a high wal_keep_segments
setting.

so check yours replication slots, archive_command (if archive_mode is enabled), wal_keep_segments

regards, Sergei



pgsql-bugs by date:

Previous
From: Fan Liu
Date:
Subject: why wal_max_size does not work?
Next
From: Alvaro Herrera
Date:
Subject: Re: Postgresql create a core while trying log a message to syslog