Skip to content

omni_ledger

Financial ledger

omnigres · Financial ledger

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
2955omni_ledgeromnigres0.1.3FEATApache-2.0C
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
--s-d--NoYesNoYesnono

Packages

TypeRepoVersionPG Major CompatibilityPackage PatternDependencies
EXTPIGSTY0.1.319 18 17 16 15omnigresomni_id, omni_polyfill
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_ledger;		# install by extension name

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

Create this extension with:

CREATE EXTENSION omni_ledger CASCADE; -- requires omni_id, omni_polyfill

Usage

omni_ledger: Financial ledger

The omni_ledger extension provides primitives for building financial or finance-like systems where transfers of value are recorded and balanced.

Core Concepts

  • Ledger – A set of accounts representing a specific financial entity (currency, unit of value, or company accounting system). Each ledger maintains independent balance tracking.

  • Account – A distinct entity within a ledger to which value can be credited or debited. Common uses: customer wallets, company bank accounts, project funds, liability accounts.

  • Transfer – The atomic movement of value between two accounts, ensuring balanced debits and credits. The term “transfer” is used instead of “transaction” to avoid confusion with database transactions.

  • Account Category – Classifies accounts by financial nature (assets, liabilities, equity). Once assigned, a category is permanent.

Dependencies

Requires omni_id and omni_polyfill.

Table reader