Replikasyon, bir primary (birincil) veritabanından bir veya daha fazla replica (yedek) sunucusuna veri kopyalar — yüksek kullanılabilirlik (primary başarısız olursa yük devretme) ve okuma ölçeklemesi (okuma sorgularını dağıtma) için. PostgreSQL öncelikle streaming replication (fiziksel) kullanır, write-ahead log (WAL) temel alınarak.
Streaming (fiziksel) replikasyon
Primary ──(streams WAL: the write-ahead log of changes)──▶ Replica(s)
✓ The primary handles all WRITES
✓ Replicas continuously apply the primary's WAL → stay in sync (near-real-time)
✓ Replicas can serve READ queries ("hot standby") → scale reads
