Re: struggling with logical replication and WAL segments removed even with max_slot_wal_keep_size = -1 - Mailing list pgsql-admin

From Laurenz Albe
Subject Re: struggling with logical replication and WAL segments removed even with max_slot_wal_keep_size = -1
Date
Msg-id 82666d95c1c837ce600bc2a3f212f8ebbc1f5b22.camel@cybertec.at
Whole thread Raw
In response to struggling with logical replication and WAL segments removed even with max_slot_wal_keep_size = -1  (Sbob <sbob@quadratum-braccas.com>)
Responses Re: struggling with logical replication and WAL segments removed even with max_slot_wal_keep_size = -1
List pgsql-admin
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



pgsql-admin by date:

Previous
From: Sbob
Date:
Subject: Re: logical replication via log shipping
Next
From: Sbob
Date:
Subject: Re: struggling with logical replication and WAL segments removed even with max_slot_wal_keep_size = -1