yb_xcluster_ddl_replication
yugabyte-db · YugabyteDB xCluster automatic DDL capture and replay bookkeeping
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102104 | yb_xcluster_ddl_replication | yugabyte-db | 1.0 | ETL | Apache-2.0 | C |
Usage
Sources:
- src/postgres/yb-extensions/yb_xcluster_ddl_replication/yb_xcluster_ddl_replication.control
- src/postgres/yb-extensions/yb_xcluster_ddl_replication/README.md
- src/postgres/yb-extensions/yb_xcluster_ddl_replication/yb_xcluster_ddl_replication–1.0.sql
- src/postgres/yb-extensions/yb_xcluster_ddl_replication/yb_xcluster_ddl_replication.c
- LICENSE.md
yb_xcluster_ddl_replication is a YugabyteDB-specific extension used by xCluster automatic DDL replication. It records source DDL and target replay state; the external xCluster handler performs the replay.
Core Workflow
Enable automatic xCluster replication through YugabyteDB’s management workflow first. At the cited revision, YugabyteDB includes the library in its default shared_preload_libraries; xCluster setup creates the extension in participating databases on both universes. Then inspect the database’s replication role:
Operational Boundaries
The fixed schema contains ddl_queue, replicated_ddls and event-trigger handlers. Only get_replication_role() is granted to PUBLIC; internal tables and replay settings are not an application API. Target-side user DDL is restricted. Extensions whose scripts contain complex DDL such as table creation must be installed before adding the database to automatic replication.
The reviewed control version is 1.0 at the cited source revision; this is not a portable vanilla PostgreSQL extension or an independent replication service.