Skip to content

dist_emaj

Coordinated E-Maj marks and rollback across PostgreSQL databases.

dist_emaj · Coordinated E-Maj marks and rollback across PostgreSQL databases.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
102310dist_emajdist_emaj0.9.1ADMINGPL-3.0-or-laterPLpgSQL
Relationships
Requiresdblink

Usage

Sources:

dist_emaj 0.9.0 coordinates E-Maj operations across databases so marked groups can be rolled back consistently.

Core Workflow

Install the coordinator with its dblink dependency. Register connection definitions with dist_emaj.create_database, define a logical cluster with dist_emaj.create_cluster, then assign E-Maj groups using dist_emaj.assign_group. Run dist_emaj.verify_cluster before coordinated operations. The supplied distEmaj.pl and distEmajRollback.pl clients drive distributed marks and rollbacks.

CREATE EXTENSION dist_emaj CASCADE;
SELECT extversion FROM pg_extension WHERE extname = 'dist_emaj';

Operational Boundaries

Every managed database needs compatible E-Maj and authorized remote connections. Distributed rollback uses two-phase commit: configure prepared-transaction capacity and retain a recovery procedure for interrupted operations. Treat connection secrets as privileged data and follow the versioned SQL function signatures. This extension does not create distributed transaction semantics for unrelated application writes.

Table reader