Replication ले डेटा एक primary डेटाबेसबाट एक वा अधिक replica (standby) सर्भरहरूमा कपी गर्छ — उच्च उपलब्धताको लागि (primary असफल हुँदा failover) र read scaling को लागि (read queries लाई वितरित गर्न)। PostgreSQL मुख्यतः streaming replication (physical) प्रयोग गर्छ जुन 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
