How to Hack on Logical Replication: Insights from contributors
summary
Logical replication history since PostgreSQL 10 receives five-plus years of contributor-driven changes and concrete debugging methods: use pg_recvlogical and perf profiles to isolate wal_sender and apply_worker hotspots, run publisher-only workloads then enable a disabled subscriber to measure apply time, and monitor the build farm and safeboard for regressions. Patches shown include removing redundant catalog lookups to speed PG output, fixing replication slot restart_lsn crashes, adding MERGE replica-identity checks, and hardening parallel apply worker lock-timeout handling.
AI-written summary · about
chapters (34)
- 0:00Introduction to talk
- 1:09Logical replication basics
- 3:40Why contribute to logical replication
- 4:43Logical replication architecture
- 8:14Types of contributions
- 9:58Performance improvement tips
- 13:29Testing publisher performance
- 14:53Testing subscriber performance
- 15:35Detecting performance issues
- 17:19Finding and fixing bugs
- 18:44Bug testing after major features
- 20:10Testing new features impact
- 21:15Code refactoring guidelines
- 22:40Subscriber side contributions
- 23:02Publication DDL challenges
- 25:10Validation and limitations
- 26:56Lazy validation approach
- 28:02Version compatibility issues
- 29:08API compatibility concerns
- 30:15Testing across versions
- 30:35Logical replication slots
- 32:44Logical decoding challenges
- 33:05Alter subscription issues
- 34:51Row filter restrictions
- 35:33Extension function limitations
- 36:37Replica identity settings
- 37:41Subscriber process architecture
- 40:34Streaming vs logical replication
- 41:38Delayed replication challenges
- 43:43Worker type considerations
- 44:26Signal handling issues
- 45:30Replication origin tracking
- 46:14Migration limitations
- 47:17Closing and Q&A
