Managing a Spock Installation
The upstream Spock manual covers 6.0.0-beta.2 and includes 5.0 maintenance notes. For deployment, configuration and recovery on Mimus, use Spock 5.0.15.
The Spock extension is a powerful addition to any PostgreSQL installation; management features of the Spock extension allow you to seamlessly:
- replicate partitioned tables.
- create logical row-based data filters.
- set a cluster to READ-ONLY mode; this restricts non-superusers to read-only operations, while superusers can still perform both read and write operations.
- use a trigger to manage replication set membership.
- use Snowflake sequences for sequence management in a distributed cluster.
- use the Lolor extension to replicate large objects.
- enable automatic DDL replication.
Upstream source · d05e2e2b6a82 · Copyright (c) 2021–2026, pgEdge, Inc.; portions Copyright the PostgreSQL Global Development Group and The Regents of the University of California. PostgreSQL License.
The spock extension can automatically replicate DDL statements.
Automatic DDL replication is a great alternative to using a trigger to manage replication sets, but if you do need to dynamically modify replication rules, column or row filters, or partition filters, this trigger might be useful.
Spock allows row based filtering on both the provider side and the subscriber side.
By default, when you add a partitioned table to a Spock replication set, Spock will include all the current partitions of a partitioned table.
PostgreSQL’s logical decoding facility does not support decoding changes to large objects; we recommend instead using the LOLOR extension to manage large objects.
Spock supports operating a node in read-only mode.
The Snowflake extension provides a sequence-based unique ID solution to replace the Postgres built-in bigserial data type in distributed replication clusters.