Understanding PostgreSQL Write-Ahead Logging (WAL)
A practical introduction to PostgreSQL WAL, covering WAL records, WAL segments, crash recovery, and inspecting WAL files using pg_waldump.
A practical introduction to PostgreSQL WAL, covering WAL records, WAL segments, crash recovery, and inspecting WAL files using pg_waldump.
Tracing how PostgreSQL traverses B-Tree indexes, resolves Tuple Identifiers (TIDs), fetches heap pages, and eventually turns a SQL query into disk reads.
A practical, surface-level tour of what PostgreSQL writes to disk when you run SQL—OIDs, relfilenodes, heap segments, and 8KB pages—plus how to peek at the raw files.