Re: Wal_keep_size - Mailing list pgsql-admin

From Raj
Subject Re: Wal_keep_size
Date
Msg-id CAJk5Ata7Kz-k=KfEyZVhckVgrk8_faNgGd3RcRnV2tzqs_D5ig@mail.gmail.com
Whole thread Raw
In response to Re: Wal_keep_size  (Raj <rajeshkumar.dba09@gmail.com>)
List pgsql-admin
Note archive mode is enabled.

On Tue, 7 Oct 2025, 10:22 Raj, <rajeshkumar.dba09@gmail.com> wrote:
If wal_keep_size is more than max_wal_size wouldn't it always trigger checkpoint ?

On Tue, 7 Oct 2025, 03:08 Thomas Carroll, <tomfecarroll@yahoo.com> wrote:
Hope nobody minds me chipping in here.

The answer is "not necessarily."  The names make them seem closely related, but not so much.

max_wal_size is all about checkpoints.  When the WAL exceeds this, Postgres will try to run a checkpoint.  Under some circumstances it won't, but let's keep it simple for now.

wal_keep_size is all about replication.  Replicas need WAL files to stick around for long enough that they can process them.  wal_keep_size is a minimum figure.

Tom
On Monday, October 6, 2025 at 03:51:17 PM EDT, Raj <rajeshkumar.dba09@gmail.com> wrote:


Should Wal_keep_size <= max_wal_size ?

pgsql-admin by date:

Previous
From: Raj
Date:
Subject: Re: Wal_keep_size
Next
From: Laurenz Albe
Date:
Subject: Re: Wal_keep_size