PostgreSQL & Databases
Write-ahead log
WAL records changes before durable data pages are written, enabling crash recovery and replication.
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
- HOT updatesBeginner · 4 min
Heap-only tuple updates can avoid secondary index churn when indexed columns stay unchanged and room exists on the page.
- Partial indexesBeginner · 4 min
Partial indexes contain rows matching their predicate and can shrink a hot query access path.
- 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.
- 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.