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

Row versions

Line 2 with the price 170 is crossed out but not erased, and an arrow leads from it to the new version, line 4 with the price 180

Let's go back to the ledger from the first chapter. Suppose the clerk keeps the prices in it too and never erases anything. To raise the price of an Americano, he does not paint over the old line but writes a new one at the bottom of the page. He crosses out the old line and writes next to it the number of the entry that corrected it. And the margin of every line notes which entry added it.

In this lesson

  • Row version
  • What UPDATE does
  • Transaction IDs: xmin and xmax
  • Inside the page
  • Common mistake
  • Key points