Replication slots
Physical and logical replication slots retaining WAL and catalog xmin for consumers, including slot advance/copy, max_slot_wal_keep_size and pg_replication_slots. Introduced in PostgreSQL 9.4.
Versions
- PostgreSQL 20 · in-development · improved · minor · 1 commit · +11 / -4 lines
- PostgreSQL 19 · worked-on · improved · moderate
- PostgreSQL 18 · shipped · improved · minor · 2 commits · +39 / -4 lines
- PostgreSQL 17 · shipped · improved · moderate · 2 commits · +126 / -54 lines
- PostgreSQL 16 · worked-on · improved · moderate
- PostgreSQL 15 · worked-on · improved · minor
Threads
- Fix safe_wal_size for slots without restart_lsn
- Show effective xmin in pg_replication_slots when xmin is not set
- Temporary slot leak when creation fails in a subtransaction
- ReplicationSlotRelease() clobbers another backend's statusFlags entry
- pg_resetwal with replication slot (17.11)
- [PATCH] Release replication slot on error in SQL-callable slot functions
- 019_replslot_limit.pl might fail due to checkpoint skipped
- Walreceiver create temp slot more than once when timeline switch
- [PATCH] Release a replication slot leaked by a caught subtransaction error
- Checkpoint replication slots later
- BUG #19549: Physical replication slot xmin value stuck
- Fix race in ReplicationSlotRelease for ephemeral slots
- pgsql: Advance restart_lsn more eagerly in LogicalConfirmReceivedLocati
- logical: fix recomputation required LSN on restart_lsn-only advancement
- Fix the race condition for updating slot minimum LSN
- [PATCH] Fix TOCTOU race in ReplicationSlotsComputeRequiredLSN()
- [PATCH] Add max_logical_replication_slots GUC
- Newly created replication slot may be invalidated by checkpoint
- [PATCH] Fix typo in pgstat_replslot.c
- Wrong comment for ReplicationSlotCreate
- Question about InvalidatePossiblyObsoleteSlot()
- Replace O_EXCL with O_TRUNC for creation of state.tmp in SaveSlotToPath
- Remove obsolate comments from 047_checkpoint_physical_slot
- ReplicationSlotRelease() crashes when the instance is in the single user mode
- Document slot's restart_lsn can go backward
- Slot's restart_lsn may point to removed WAL segment after hard restart unexpectedly
- Backward movement of confirmed_flush resulting in data duplication.
- pg_recvlogical requires -d but not described on the documentation
- doc patch: wrong descriptions for dropping replication slots
- Allowing pg_recvlogical to create temporary replication slots
- logical replication: restart_lsn can go backwards (and more), seems broken since 9.4
- Linkify mentions of the primary/subscriber's max_replication_slots
- incorrect wal removal due to max_slot_wal_keep_size
- confirmed flush lsn seems to be move backward in certain error cases
- Add missing ConditionVariableCancelSleep() in slot.c
- ReplicationSlotRelease may set the statusFlags of other processes in PG14
- A failure in t/001_rep_changes.pl
- A proposal to provide a timeout option for CREATE_REPLICATION_SLOT/pg_create_logical_replication_slot
- failure in 019_replslot_limit
- Forbid the use of invalidated physical slots in streaming replication.
- Fix inappropriate comments in function ReplicationSlotAcquire
- Update the doc that refers to the removed column of pg_replication_slots.
- minor replication slot docs edits
- Track in pg_replication_slots the reason why slots conflict?
- Function to get invalidation cause of a replication slot.
- Is it worth adding ReplicationSlot active_pid to ReplicationSlotPersistentData?
- Remove extraneous break condition in logical slot advance function
- whether to unlink the existing state.tmp file in SaveSlotToPath
- pg_replslotdata - a tool for displaying replication slot information
- WAL segments removed from primary despite the fact that logical replication slot needs it.
- Fix GetWALAvailability function code comments for WALAVAIL_REMOVED return value
- Logical replication halted due to "this slot has been invalidated because it exceeded the maximum reserved size."
- Fix comments atop pg_get_replication_slots
- Catalog_xmin is not advanced when a logical slot is lost
- Reviving lost replication slots
- confirmed_flush_lsn shows LSN of the data that has not yet been received by the logical subscriber.
- more descriptive message for process termination due to max_slot_wal_keep_size
- pg_create_logical_replication_slot argument incongruency
- A proposal to force-drop replication slots to make disabling async/sync standbys or logical replication faster in production environments
- Race conditions in 019_replslot_limit.pl
- pg_stat_get_replication_slot() marked not strict, crashes
- Replication slot drop message is sent after pgstats shutdown.
- pg_stat_get_replication_slot and pg_stat_get_subscription_worker incorrectly marked as proretset
- Race condition in InvalidateObsoleteReplicationSlots()
- Deduplicate min restart_lsn calculation code
- BUG #17327: Postgres server does not correctly emit error for max_slot_wal_keep_size being breached
- BUG #17296: replication slot self-removed after created
- max_slot_wal_keep_size unit is not specified
- logical decoding/replication: new functions pg_ls_logicaldir and pg_ls_replslotdir
- pg_receivewal starting position
- pg_replication_slot_advance xmin handling when active slot becomes inactive
- Timeout failure in 019_replslot_limit.pl
- pg_stat_replication_slots docs
- Remove duplicate static function check_permissions in slotfuncs.c and logicalfuncs.c
- BUG #17103: WAL segments are not removed after exceeding max_slot_wal_keep_size
- Use PG_STAT_GET_REPLICATION_SLOT_COLS in pg_stat_get_replication_slot()
- Replication slot stats misgivings
- Data type correction in pgstat_report_replslot function parameters
- replication slot stats memory bug
- [PATCH] TAP test showing that pg_replication_slot_advance() works on standby
- Avoid unnecessary ReplicationSlotControl lwlock acquistion
- ReplicationSlotsComputeRequiredXmin seems pretty questionable
- Physical slot restart_lsn advances incorrectly requiring restore from archive
- min_safe_lsn column in pg_replication_slots view
- Physical replication slot advance is not persistent
- The description for pg_replication_slots.restart_lsn
- Review for GetWALAvailability()
- [PATCH] Allow to specify restart_lsn in pg_create_physical_replication_slot()
- Assertion failure in pg_copy_logical_replication_slot()
- Restricting maximum keep segments by repslots
- logical replication: could not create file "state.tmp": File exists
- pgsql: Allow users to limit storage reserved by replication slots
- potential stuck lock in SaveSlotToPath()
- idea: reduce logical slot induced bloat when multiple databases are used
- logical copy_replication_slot issues
- pgsql: walreceiver uses a temporary replication slot by default
- RS_EPHEMERAL vs RS_TEMPORARY
- Fix comment typos.
- physical slot xmin dependency on logical slot?
- WAL recycled despite logical replication slot
- BUG #15959: 'DROP EXTENSION pglogical' while an unused logical replication slot exists causes slot corruption
- This seems like very unfriendly behaviour
- Copy function for logical replication slots
- Moving slot restart_lsn/catalog_xmin more eagerly from SQL functions
- No such file or directory in pg_replslot
- replication_slots usability issue
- Bug in slot.c and are replication slots ever used at Window?
- replication slots only need user with replication for creation
- patch to ensure logical decoding errors early
- why doesn't pg_create_logical_replication_slot throw an error if the encoder doesn't exist
- Possible bug in logical replication.
- pg_create_logical_replication_slot returns text instead of name
- Non-reserved replication slots and slot advancing
- pg_replication_slot_advance to return NULL instead of 0/0 if slot not advanced
- Bug in Physical Replication Slots (at least 9.5)?
- cannot drop replication slot if server is running in single-user mode
- Server Crash while executing pg_replication_slot_advance (second time)
- Server crash in pg_replication_slot_advance function
- After an error - pg_replication_slot is dropped
- Function to move the position of a replication slot
- Logical decoding fast-forward and slot advance
- [PATCH] Off-by-one error in logical slot resource retention
- More replication race conditions
- [PATCH] Fix drop replication slot blocking instead of returning error
- More race conditions in logical replication
- pgsql: Fix inadequacies in recently added wait events