| From: | Sbob <sbob(at)quadratum-braccas(dot)com> |
|---|---|
| To: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, pgsql-admin(at)lists(dot)postgresql(dot)org |
| Subject: | Re: struggling with logical replication and WAL segments removed even with max_slot_wal_keep_size = -1 |
| Date: | 2026-01-04 18:40:13 |
| Message-ID: | d488bb88-bb6b-4ae7-8dfc-3b03a3d4f6ef@quadratum-braccas.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Siraj G | 2026-01-06 17:18:44 | Is PgAudit extension database specific? |
| Previous Message | Laurenz Albe | 2026-01-04 16:29:14 | Re: struggling with logical replication and WAL segments removed even with max_slot_wal_keep_size = -1 |