PostgreSQL & Databases
Replication lag
Replication delay can arise from network transport, WAL replay, or apply throughput.
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
- CheckpointsBeginner · 4 min
Checkpoints bound crash recovery work by writing dirty buffers to storage.
- Logical replicationBeginner · 4 min
A publication emits selected table changes and a subscription applies them on the receiver.
- 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…
- MVCC visibilityBeginner · 4 min
PostgreSQL keeps several versions of a row, so readers and writers rarely block each other. You learn how a snapshot decides which version a query sees, and why old…