Skip to content

omni_txn

Transaction management

omnigres · Transaction management

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
2971omni_txnomnigres0.5.0FEATApache-2.0C
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
--s-d--NoYesNoYesnono

Packages

TypeRepoVersionPG Major CompatibilityPackage PatternDependencies
EXTPIGSTY0.5.019 18 17 16 15omnigres-
RPMPIGSTY2026021219 18 17 16 15omnigres_$vpostgresql$v-contrib, postgresql$v-plpython3, python3-pip
DEBPIGSTY2026021219 18 17 16 15postgresql-$v-omnigrespostgresql-plpython3-$v, python3-pip
Linux / PGPG19PG18PG17PG16PG15
el8.x86_64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
el8.aarch64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
el9.x86_64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
el9.aarch64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
el10.x86_64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
el10.aarch64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
d12.x86_64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
d12.aarch64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
d13.x86_64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
d13.aarch64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
u22.x86_64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
u22.aarch64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
u24.x86_64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
u24.aarch64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
u26.x86_64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212
u26.aarch64N/APIGSTY 20260212PIGSTY 20260212PIGSTY 20260212PIGSTY 20260212

Source

pig build pkg omnigres;		# build rpm/deb

Install

Make sure PGDG and PIGSTY repo available:

pig repo add pgsql -u   # add both repo and update cache

Install this extension with pig:

pig install omnigres;		# install by package name
pig install omni_txn;		# install by extension name

pig install omni_txn -v 18;   # install for PG 18
pig install omni_txn -v 17;   # install for PG 17
pig install omni_txn -v 16;   # install for PG 16
pig install omni_txn -v 15;   # install for PG 15

Create this extension with:

CREATE EXTENSION omni_txn;

Usage

omni_txn: Transaction management

The omni_txn extension provides transaction linearization for stronger consistency guarantees beyond standard PostgreSQL isolation levels.

Enable Linearization

BEGIN TRANSACTION ISOLATION LEVEL SERIALIZABLE;
SELECT omni_txn.linearize();
-- Perform operations; conflicts raise serialization errors
COMMIT;

Check Linearization Status

SELECT omni_txn.linearized();  -- returns boolean

Behavior

Linearizability ensures every operation appears to take place atomically in an order consistent with real-time ordering. The extension intercepts mutating statements (INSERT, UPDATE, DELETE, MERGE) and enforces:

  • Write-after-read conflict detection across serializable linearized transactions
  • Commit-after-read conflict detection
  • Snapshot conflict detection

Raises serialization error exceptions when conflicts are detected. False positives are possible; use with retry mechanisms (compatible with omni_txn.retry).

Table reader