Type: | integer |
Default: | 80 (80MB) |
Min: | 2 (2MB) |
Max: | 2147483647 (2147483647MB) |
Unit: | MB |
Context: | sighup |
Restart: | false |
Since: | 9.5 |
As long as WAL disk usage stays below this setting, old WAL files are always recycled for future use at a checkpoint, rather than removed. This can be used to ensure that enough WAL space is reserved to handle spikes in WAL usage, for example when running large batch jobs. If this value is specified without units, it is taken as megabytes. The default is 80 MB. This parameter can only be set in the postgresql.conf file or on the server command line.
On StackOverflow
On pgsql-hackers
- Re: Fix documentation for max_wal_size and min_wal_size
- [Question] pgwal increasing over max_wal_size
- Make use of assign_checkpoint_completion_target() to calculate CheckPointSegments correctly
- Re: Set arbitrary GUC options during initdb
- RE: [PATCH] Reuse Workers and Replication Slots during Logical Replication