Postgres 16 highlight Logical decoding on standby
summary
Postgres 16 moves logical decoding off the primary so the decoding workload runs on a standby, demonstrated with publications/subscriptions, logical slots on standbys (including cascading), promotions that keep decoding running, and manual LSN synchronization of slots on v16. Implementation adds a catalog flag in WAL records to detect snapshot conflicts, changes to handle promotion and recovery wakeups, and uses invalidate conflicting slots (instead of immediate drop). Demo shows it working end-to-end and highlights that v17 will add automatic slot handover so failover resumes decoding without manual sync.
AI-written summary · about
chapters (15)
- 0:00Introduction and agenda
- 1:09Logical decoding basics
- 4:40Logical decoding on standby explained
- 5:01History and challenges of implementation
- 6:28Catalog conflicts and solutions
- 12:06Standby feedback and slot conflicts
- 14:39Transaction level conflicts
- 15:44Promotion and logical decoding
- 19:03Feature summary and demo setup
- 20:24Live demo: Basic setup
- 23:37Live demo: Subscription from standby
- 26:12Live demo: Cascading standby
- 28:47Live demo: Conflict handling
- 31:41Live demo: Slot synchronization
- 35:17Q&A session
