Skip to content
Theory · PostgreSQL Replication and Scaling · lesson 1 of 12

Streaming replication

The primary writes a change to the ledger and the WAL notebook and dictates it by phone; the replica repeats the entries and lags slightly

The coffee chain's ledger is kept at the head office. If a pipe bursts there, the chain loses prices and orders. So a second office keeps a copy.

In this lesson

  • The WAL
  • How a replica gets the WAL
  • A replica only reads
  • A replication slot
  • Replica lag
  • Common mistake
  • Key points