public inbox for [email protected]  
help / color / mirror / Atom feed
From: Laurenz Albe <[email protected]>
To: Sbob <[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, 04 Jan 2026 17:29:14 +0100
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

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





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