Logical replication ngreplika data changes ing tingkat tabel spesifik (nggunakake model publish/subscribe), tinimbang nggawe salinan database cluster mau byte-for-byte kaya physical (streaming) replication. Iki ndadekake fleksibel — selektif, lintas versi, lan menyang schema beda — ideal kanggo migrasi lan integrasi.
Logical vs physical replication
PHYSICAL (streaming) → replicates the ENTIRE cluster at the storage/WAL level
✓ exact copy, simple ✗ all-or-nothing, same Postgres version, read-only replica
LOGICAL → replicates specific TABLES' changes via a publish/subscribe model
✓ SELECTIVE (choose tables), CROSS-VERSION, to DIFFERENT schemas, replica is WRITABLE
✗ more setup, some limitations (DDL not replicated automatically, etc.)
