Replication slot invalidation
Invalidating replication slots by idle timeout or XID age, and inactive_since handling.
Versions
- PostgreSQL 20 · worked-on · improved · moderate
- PostgreSQL 19 · worked-on · improved · moderate
- PostgreSQL 18 · shipped · improved · moderate · 4 commits · +538 / -146 lines
- PostgreSQL 17 · shipped · improved · moderate · 4 commits · +519 / -166 lines
Threads
- Introduce XID age based replication slot invalidation
- Persist slot invalidations before publishing them
- [BUG] [PATCH] Allow physical replication slots to recover from archive after invalidation
- confusing results from pg_get_replication_slots()
- Unexpected behavior when setting "idle_replication_slot_timeout"
- Mention idle_replication_slot_timeout in pg_replication_slots docs
- Restrict copying of invalidated replication slots
- Race condition in replication slot usage introduced by commit f41d846
- Introduce XID age and inactive timeout based replication slot invalidation
- Inconsistent GUC descriptions
- DOCS - inactive_since field readability
- Avoid updating inactive_since for invalid replication slots
- Improve error handling for invalid slots and ensure a same 'inactive_since' time for inactive slots
- DOCS - pg_replication_slot . Fix the 'inactive_since' description
- Disallow altering invalidated replication slots
- Remove unnecessary segment number calculation after wal_removed invalidation of replication slots
- pgsql: Track last_inactive_time in pg_replication_slots.
- Add lookup table for replication slot invalidation causes