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

LSN: a position in the log

Every line in the clerk's journal starts with a number: how many characters lie between the start of the notebook and that line. Two numbers tell at once which line was written first and how much text lies between them. And on every page of the ledger the clerk notes in pencil the number of the last journal line he has already carried out on that page.

In this lesson

  • What an LSN is
  • Written and flushed
  • A page's LSN
  • How much log an operation writes
  • Common mistake
  • Key points