Replikimi logjik përpunon ndryshimet e të dhënave në nivelin e tabelave specifike (duke përdorur një model botim/nënshkrim), në vend që të kopjojë të gjithë klasteri i bazës së të dhënave bajt-për-bajt si replikimi fizik (streaming). Kjo e bën atë fleksibël — selektiv, ndër-versionesh, dhe për skema të ndryshme — ideal për migrimin dhe integrimin.
Replikimi logjik kundrejt replikimit fizik
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.)
