Skip to content
Theory · MVCC: Row Versions and VACUUM · lesson 10 of 11

Freezing and wraparound

Suppose the entries in the price ledger are numbered by a four-digit numbering stamp. After 9999 it prints 0000 again. While the ledger is thin, this does not matter. But one day a reader with number 0003 compares their number with entry 9990 and decides that the entry is from the future: 9990 is larger. The old price vanishes for them.

In this lesson

  • IDs go in a circle
  • Freezing
  • How to watch the age
  • When freezing falls behind
  • Common mistake
  • Key points