pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Luca Ferrari <fluca1978@gmail.com>
To: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: when is useful min_wal_size?
Date: Thu, 04 Feb 2021 12:56:04 +0100
Message-ID: <b2f73ce7c52ee6ceb63073823c22d0803fc6c0b4.camel@cybertec.at> (raw)
In-Reply-To: <CAKoxK+4NZrb6QLzeOHJMT7twP66zNGa8rZ3-=t1q6L7NSDShkQ@mail.gmail.com>
References: <CAKoxK+4NZrb6QLzeOHJMT7twP66zNGa8rZ3-=t1q6L7NSDShkQ@mail.gmail.com>

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






view thread (2+ messages)

Message-ID: <b2f73ce7c52ee6ceb63073823c22d0803fc6c0b4.camel@cybertec.at>
Permalink:  ../b2f73ce7c52ee6ceb63073823c22d0803fc6c0b4.camel@cybertec.at/
Also on:    postgresql.org/message-id/b2f73ce7c52ee6ceb63073823c22d0803fc6c0b4.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, fluca1978@gmail.com
  Subject: Re: when is useful min_wal_size?
  In-Reply-To: <b2f73ce7c52ee6ceb63073823c22d0803fc6c0b4.camel@cybertec.at>
  References: <CAKoxK+4NZrb6QLzeOHJMT7twP66zNGa8rZ3-=t1q6L7NSDShkQ@mail.gmail.com> <b2f73ce7c52ee6ceb63073823c22d0803fc6c0b4.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox