Logical replication conflict detection
Detecting, logging and counting logical replication conflicts, including update_deleted with retain_dead_tuples and resolution proposals.
Versions
- PostgreSQL 20 · in-development · improved · moderate · 4 commits · +3.6k / -613 lines
- PostgreSQL 19 · shipped · improved · major · 11 commits · +4.3k / -719 lines
- PostgreSQL 18 · shipped · new · moderate · 7 commits · +1.6k / -292 lines
- PostgreSQL 17 · worked-on · improved · major
Threads
- unidirectional logical replication logging issue
- Fix a wrong comment in UpdateDeadTupleRetentionStatus()
- Proposal: Conflict log history table for Logical Replication
- DOC: Minor updates for logical replication conflicts
- Conflict Detection and Resolution
- Re: Proposal: Conflict log history table for Logical Replication
- Avoid using raw xmin of frozen tuples in logicalrep conflict detection
- Logical replication: lost updates/deletes and invalid log messages caused by SnapshotDirty + concurrent updates
- [BUG?] check_exclusion_or_unique_constraint false negative
- Fix primary status update WAL position description
- Follow-up review items for update_deleted
- Remove stale XXX comment in logical launcher
- Make the logical replication conflict messages more like each other
- Fix resource leak in FindConflictTuple() retry path
- Reject negative max_retention_duration values
- [Patch] Fix check_pub_rdt bypass when origin is set in same ALTER SUBSCRIPTION
- BUG #19360: Bug Report: Logical Replication initial sync fails with "conflict=update_origin_differs" PG12 toPG18
- Improve conflict detection when replication origins are reused
- [Patch]: Fix excessive ProcArrayLock acquisitions with subscription max_retention_duration=0
- [PATCH] Fix Int32GetDatum used for bool column in CREATE SUBSCRIPTION
- Assert the timestamp is available for ORIGN_DIFFERS conflicts
- Simplify code building the LR conflict messages
- Replace is_publishable_class() with relispublishable column in pg_class
- comment for TwoPhaseGetOldestXidInCommit
- Reword messages using "as" instead of "because"
- Conflict detection for update_deleted in logical replication
- pgsql: Preserve conflict-relevant data during logical replication.
- Avoid retaining conflict-related data when no tables are subscribed
- Fix typos in comments in worker.c and execReplication.c
- Question on error code selection in conflict detection
- Conflict detection for multiple_unique_conflicts in logical replication
- Logical replication - proposal for a custom conflict resolution function
- Commit Timestamp and LSN Inversion issue
- Clock-skew management in logical replication
- Fix possible resource leaks (src/backend/replication/logical/conflict.c)
- Collect statistics about conflicts in logical replication
- pg_stats_subscription_stats order of the '*_count' columns
- Conflict detection and logging in logical replication
- Is the logfile the only place to find the finish LSN?
- Logical Replication Conflict Resolution