Storage layer

How databases keep data

Know exactly when Postgres has your data, and what another transaction can see.

  1. 01

    How Postgres writes a row

    From INSERT to bytes on disk.

    Being writtenFree
  2. 02

    The write-ahead log and fsync

    Why the log is written before the table.

    Being writtenFree
  3. 03

    B-tree indexes

    Why one index makes a query 1,000 times faster.

    Being writtenFree
  4. 04

    Transactions

    All or nothing, and what that costs.

    Being writtenPro
  5. 05

    Isolation levels

    The anomalies each level allows, with examples.

    Being writtenPro
  6. 06

    MVCC and locks

    How readers and writers avoid blocking each other.

    Being writtenPro
  7. 07

    Replication

    Copies, lag, and reading your own writes.

    Being writtenPro