PostgreSQL & Databases
WAL fundamentals: operational verification
Write-ahead logging writes each change to the log before the data page changes. The log is the basis of crash recovery, replication and archiving, so its volume follows the write load.
What you will be able to do
- Explain why each change is logged before the data page is written.
- Decide which replication slot or archive setting to check when pg_wal grows.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in PostgreSQL & Databases
- Planner statistics: operational verificationAdvanced · 5 min
The planner chooses plans from row estimates that come from statistics collected by ANALYZE. A bulk load leaves those statistics stale until the table is analyzed again.
- HOT updates: failure analysisAdvanced · 5 min
A HOT update writes the new row version on the same page without new index entries, but only when no indexed column changes. Indexing a column that changes on every…