In this post we'll explore the basics of logical replication between two Postgres databases as both a user and a developer. Background Postgres first implemented physical replication where it shipped bytes on disk from one database A to another database B. Database B would write those bytes right back to disk. But this physical replication limits you to replicating between Postgres instances running the same Postgres version and on the same CPU architecture (and likely other operating system settings like page size). Logical replication replicates specific messages (e.g. insert, update, delete
↧