min_wal_size
No restart — takes effect on reloadtuned by pgconfiguratordisk size (MB/GB)
How much WAL PostgreSQL recycles and keeps ready instead of deleting.
What pgconfigurator would set
32 GB · 8 vCPU · NVMe · OLTP
Computing…
Tune for your exact server → /tunecomputed in your browser · nothing uploaded
What it does
min_wal_size sets the floor below which PostgreSQL stops removing old WAL files and instead recycles them for future use. Recycling avoids the cost of creating new files during bursts of write activity.
How to tune it
The default is usually fine. On spiky write workloads, raising it keeps more pre-allocated WAL ready so bursts don't pay file-creation overhead. It works together with max_wal_size and applies on reload.