PostgreSQL & Databases
Logical replication
A publication emits selected table changes and a subscription applies them on the receiver.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A command to try yourself
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in PostgreSQL & Databases
- Write-ahead logBeginner · 4 min
WAL records changes before durable data pages are written, enabling crash recovery and replication.
- CheckpointsBeginner · 4 min
Checkpoints bound crash recovery work by writing dirty buffers to storage.
- Replication lagBeginner · 4 min
Replication delay can arise from network transport, WAL replay, or apply throughput.
- AutovacuumBeginner · 4 min
Autovacuum reclaims reusable space and advances transaction ID freeze horizons.
- pg_stat_statementsBeginner · 4 min
The extension aggregates normalized query execution statistics across calls.
- Connection poolingIntermediate · 5 min
Why 800 mostly idle connections can take down a database that is doing almost nothing, and the one setting in PgBouncer that decides what your application can still do…