Replikasi nggawe salinan data saka basis data primary menyang siji utawa luwih replica (standby) servers — kanggo high availability (failover yen primary gagal) lan read scaling (menyebarake query baca). PostgreSQL utamane nggunakake streaming replication (physical) adhedhasar write-ahead log (WAL).
Streaming (physical) replication
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
