ACTIVITY
Timeline
Timeline for the post: PostgreSQL logical replication slot grows and WAL accumulates after logical decoding plugin crashes on high-write primary
Currently licensed under: CC BY-SA 4.0
| When | What | By | License | Comment |
|---|---|---|---|---|
Oct 24, 2026, 9:21:01 AM 1mo ago | Answer | agnesdigital | CC BY-SA 4.0 | If the decoder can be restarted and attached to the same slot, that’s the safest path: bring the consumer back, resume streaming and let the slot advance — WAL files will then be removed. If the consumer is unrecoverable and disk is critical, after confirming you have an up-to-date base backup and accept losing that downstream state, drop the slot with SELECT pg_drop_replication_slot('slotname') to free WAL. Add monitoring for slot lag and supervise the decoding process so future crashes auto-restart and resume the slot. Verify by watching pg_replication_slots and disk WAL usage. |
Oct 24, 2026, 9:21:01 AM 1mo ago | Created | debugdaniel | CC BY-SA 4.0 | PostgreSQL logical replication slot grows and WAL accumulates after logical decoding plugin crashes on high-write primary |