when is useful min_wal_size?

Started by Luca Ferrariabout 5 years ago2 messagesgeneral
Jump to latest
#1Luca Ferrari
fluca1978@gmail.com

Hi all,
this may sound trivial, but in my opinion min_wal_size is useful only
when the cluster is initialized or the wals are reset.
Am I wrong?

Luca

#2Laurenz Albe
laurenz.albe@cybertec.at
In reply to: Luca Ferrari (#1)
Re: when is useful min_wal_size?

On Thu, 2021-02-04 at 12:41 +0100, Luca Ferrari wrote:

this may sound trivial, but in my opinion min_wal_size is useful only
when the cluster is initialized or the wals are reset.
Am I wrong?

The amount of WAL that PostgreSQL pre-creates for future use
depends on the database activity but has a lower limit of "min_wal_size".

If your workload is subject to long lulls followed by activity spikes,
raising "min_wal_size" can improve the performance at the beginning
of an activity spike.

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com