Logical replication ทำการ replicate การเปลี่ยนแปลงของข้อมูลในระดับ ตารางเฉพาะ (โดยใช้โมเดล publish/subscribe) แทนที่จะคัดลอกทั้ง cluster ของฐานข้อมูลแบบ byte ต่อ byte อย่าง physical (streaming) replication สิ่งนี้ทำให้มันยืดหยุ่น ทั้งแบบเลือกได้, cross-version และไปยัง schema ที่ต่างกัน เหมาะอย่างยิ่งสำหรับ migration และ integration
logical กับ 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.)
