public inbox for [email protected]
help / color / mirror / Atom feedFrom: Laurenz Albe <[email protected]>
To: Sbob <[email protected]>
To: [email protected]
Subject: Re: logical replication, with a replication slot but still getting "requested WAL segment has already been removed"
Date: Tue, 23 Dec 2025 11:17:15 +0100
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
On Mon, 2025-12-22 at 14:14 -0700, Sbob wrote:
> We have setup logical replication for some very large tables, both publisher and subscriber
> are running postgresql v14, however even though the locical replication is using a replication
> slot we keep getting this error:
>
> 2025-12-21 23:25:50.452 UTC [2131314] LOG: logical replication apply worker for subscription "bigtables_sub" has started
> 2025-12-21 23:25:50.987 UTC [2131314] ERROR: could not receive data from WAL stream: ERROR: requested WAL segment 000000020000089F00000098 has already been removed
Look into "pg_replication_slots" on the publisher, perhaps the "wal_status" has changed
to "unreserved" or "lost". One possible cause for that could be the setting of
"max_slot_wal_keep_size" on the publisher.
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: logical replication, with a replication slot but still getting "requested WAL segment has already been removed"
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