Skip to content
Theory · WAL, Checkpoints and Crash Recovery · lesson 1 of 11

The write-ahead log

First the change is appended to the WAL notebook and stamped commit (1); the page goes back to its shelf later (2)

Let's go back to the coffee chain's office. Open pages of the ledger lie on the clerk's desk, and the rest stand on the shelves in the back room. He carries a corrected page back to its shelf not at once but when he has a minute. Now imagine the lights in the building go out: everything on the desk is gone, corrections included.

In this lesson

  • Dirty pages
  • Pages or a log
  • What a WAL record holds
  • Common mistake
  • Key points