Logical replication tirreplikà l-bidliet tad-data fil-livell ta' tabelli speċifiċi (billi tuża mudell publish/subscribe), minflok ma tikkopja l-intero database cluster byte-for-byte bħal physical (streaming) replication. Dan jagħmilha flessibli — selettiva, cross-version, u lil skemi differenti — ideali għal migrazzjonijiet u integrazzjonijiet.
Logical versus 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.)
