public inbox for [email protected]  
help / color / mirror / Atom feed
From: Sbob <[email protected]>
To: Laurenz Albe <[email protected]>
To: [email protected]
Subject: Re: struggling with logical replication and WAL segments removed even with max_slot_wal_keep_size = -1
Date: Sun, 4 Jan 2026 11:40:13 -0700
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>


On 1/4/26 9:29 AM, Laurenz Albe wrote:
> On Sat, 2026-01-03 at 11:28 -0700, Sbob wrote:
>> we have been fighting logical replication for some timetgres v14,
>> max_slot_wal_keep_size = -1 but I still get this kind of error on the
>> publisher every few days:
>>
>> ERROR:  requested WAL segment 00000002000009D6000000AB has already been removed
> What is the "wal_status" of the replication slot in "pg_replication_slots"?
>
> Unless you are hitting a bug (what is you minor version?), I'd say that some
> rogue software is removing files from "pg_wal".
>
> Compare the "restart_lsn" from "pg_replication_slots" with the available
> WAL segments on the primary.
>
> Yours,
> Laurenz Albe


We are running version 14.19

I will check the wal status next time this happens

Thanks








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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: struggling with logical replication and WAL segments removed even with max_slot_wal_keep_size = -1
  In-Reply-To: <[email protected]>

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

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