Skip to content

pgEdge · Spock

Set up bidirectional logical replication with Spock 5.0.15 and understand its recovery boundary.

Spock 5.0.15 replicates selected tables between writable PostgreSQL databases. Each node can commit locally and receive the other node’s changes asynchronously. Plan how to identify rows, arbitrate concurrent writes and recover each node before you put a table in a replication set.

  1. Create two nodes and two subscriptions. Start with one copy of the initial data.
  2. Choose a conflict policy and monitor apply. Check both directions.
  3. Prepare standbys, PITR and rollback. Some conflict resolutions generate WAL that older kernels cannot replay.

The integrated replication component is Spock. The Mimus tests exercised two nodes, including encrypted tables and access through the MySQL and TDS clients. Deployment automation, routing and other pgEdge products require their own evaluation. 200 / 201 kernel changes · Upstream Spock

pgEdge extension manuals

The PG.CENTER collection covers four extensions. The r4 image uses Spock 5.0.15 at e710faa6fe21. It also includes LOLOR 1.2.3 and Snowflake 2.6.1. Use the three Mimus guides above to operate that version.

ManualUpstream referencePurpose
Spock6.0.0-beta.2 plus 5.0 maintenance notesMulti-master replication, conflicts, SQL API
LOLOR1.3.0 development snapshotLogical replication of large objects
SafeSession1.1Enforce read-only sessions by role
Snowflake2.6.1Generate distributed 64-bit identifiers