Skip to content

orioledb

OrioleDB, the next generation transactional engine

orioledb · OrioleDB, the next generation transactional engine

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
2910orioledborioledb1.10FEATPostgreSQLC
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
--sLd-rNoYesYesYesyesno
Requires patched PG16-18 kernels; experimental.

Packages

TypeRepoVersionPG Major CompatibilityPackage PatternDependencies
EXTPIGSTY1.1019 18 17 16 15orioledb-
RPMPIGSTY1.10.319 18 17 16 15orioledb-$v-
DEBPIGSTY1.10.319 18 17 16 15orioledb-$v-
Linux / PGPG19PG18PG17PG16PG15
el8.x86_64N/APIGSTY 1.10.3PIGSTY 1.10.3PIGSTY 1.10.3N/A
el8.aarch64N/APIGSTY 1.10.3PIGSTY 1.10.3PIGSTY 1.10.3N/A
el9.x86_64N/APIGSTY 1.10.3PIGSTY 1.10.3PIGSTY 1.10.3N/A
el9.aarch64N/APIGSTY 1.10.3PIGSTY 1.10.3PIGSTY 1.10.3N/A
el10.x86_64N/APIGSTY 1.10.3PIGSTY 1.10.3PIGSTY 1.10.3N/A
el10.aarch64N/APIGSTY 1.10.3PIGSTY 1.10.3PIGSTY 1.10.3N/A
d12.x86_64N/APIGSTY 1.10.3PIGSTY 1.10.3PIGSTY 1.10.3N/A
d12.aarch64N/APIGSTY 1.10.3PIGSTY 1.10.3PIGSTY 1.10.3N/A
d13.x86_64N/APIGSTY 1.10.3PIGSTY 1.10.3PIGSTY 1.10.3N/A
d13.aarch64N/APIGSTY 1.10.3PIGSTY 1.10.3PIGSTY 1.10.3N/A
u22.x86_64N/APIGSTY 1.10.3PIGSTY 1.10.3PIGSTY 1.10.3N/A
u22.aarch64N/APIGSTY 1.10.3PIGSTY 1.10.3PIGSTY 1.10.3N/A
u24.x86_64N/APIGSTY 1.10.3PIGSTY 1.10.3PIGSTY 1.10.3N/A
u24.aarch64N/APIGSTY 1.10.3PIGSTY 1.10.3PIGSTY 1.10.3N/A
u26.x86_64N/APIGSTY 1.10.3PIGSTY 1.10.3PIGSTY 1.10.3N/A
u26.aarch64N/APIGSTY 1.10.3PIGSTY 1.10.3PIGSTY 1.10.3N/A

Source

pig build pkg orioledb;		# 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 orioledb;		# install by package name

pig install orioledb -v 18;   # install for PG 18
pig install orioledb -v 17;   # install for PG 17
pig install orioledb -v 16;   # install for PG 16

Config this extension to shared_preload_libraries:

shared_preload_libraries = 'orioledb';

Create this extension with:

CREATE EXTENSION orioledb;

Usage

Sources:

orioledb provides an alternative table storage engine using undo-based MVCC, copy-on-write checkpoints and row-level WAL. It requires a specifically patched PostgreSQL server and remains a public beta.

Configuration

Add to postgresql.conf (requires restart):

shared_preload_libraries = 'orioledb.so'

Then enable the extension:

CREATE EXTENSION orioledb;

Creating Tables

Use the USING orioledb clause to create tables with the OrioleDB storage engine:

CREATE TABLE my_table (
    id serial PRIMARY KEY,
    name text,
    value numeric
) USING orioledb;

Use ordinary DML on OrioleDB tables, subject to the documented compatibility limits:

INSERT INTO my_table (name, value) VALUES ('test', 42);
SELECT * FROM my_table WHERE id = 1;
UPDATE my_table SET value = 100 WHERE id = 1;
DELETE FROM my_table WHERE id = 1;

Collation Requirements

OrioleDB tables support only ICU, C, and POSIX collations. To avoid specifying COLLATE on every text field, create the database with an appropriate default:

CREATE DATABASE mydb LOCALE 'C' TEMPLATE template0;
-- OR
CREATE DATABASE mydb LOCALE_PROVIDER icu ICU_LOCALE 'en' TEMPLATE template0;

Compatibility and 1.10.2 Maintenance

The release’s .pgtags pins PostgreSQL 16, 17 and 18 to patches16_50, patches17_23 and patches18_4, respectively. An ordinary PostgreSQL installation is not sufficient. Only ICU, C and POSIX collations are supported. The undo and page-merging design reduces native-table vacuum requirements; other PostgreSQL tables still need normal maintenance.

Release 1.10.2 keeps SQL version 1.10 and introduces no storage or WAL format change. It fixes the runtime version reported by ORIOLEDB_VERSION, row-version handling under concurrency, capture of updates during concurrent index builds, background-writer crashes with range/array/composite keys, NULL handling in diagnostic functions, expression-index memory leaks and standby tablespace moves.

Use matching server patches and library files on every node and follow the version-specific upgrade procedure with a backup. Do not request SQL version 1.10.2: it does not exist. The public-beta limitation remains; the upstream project does not recommend general production use.

Table reader