PostgreSQL Enterprise (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
Logical Replication: Publications and Subscriptions.
senior LevelGraphQL
In Simple Words: Unlike physical replication which mirrors the entire disk cluster, Logical Replication replicates individual tables based on row-level data changes:
- Supported via
CREATE PUBLICATIONon publisher andCREATE SUBSCRIPTIONon subscriber. - Enables zero-downtime major version upgrades (e.g. Postgres 14 to Postgres 17) and cross-platform data synchronization.