跳转到主要内容

orioledb

OrioleDB, the next generation transactional engine

orioledb : OrioleDB, the next generation transactional engine

Overview

ID Extension Package Version Category License Language
2910 orioledb orioledb 1.10 FEAT Apache-2.0 OR PostgreSQL C
Attribute Has Binary Has Library Need Load Has DDL Relocatable Trusted
--sLd-r No Yes Yes Yes yes no
Requires patched PG16-18 kernels; experimental.

Packages

Type Repo Version PG Major Compatibility Package Pattern Dependencies
EXT PIGSTY 1.10 19 18 17 16 15 orioledb -
RPM PIGSTY 1.10.3 19 18 17 16 15 orioledb-$v -
DEB PIGSTY 1.10.3 19 18 17 16 15 orioledb-$v -
Linux / PG PG19 PG18 PG17 PG16 PG15
el8.x86_64 N/A PIGSTY 1.10.3 PIGSTY 1.10.3 PIGSTY 1.10.3 N/A
el8.aarch64 N/A PIGSTY 1.10.3 PIGSTY 1.10.3 PIGSTY 1.10.3 N/A
el9.x86_64 N/A PIGSTY 1.10.3 PIGSTY 1.10.3 PIGSTY 1.10.3 N/A
el9.aarch64 N/A PIGSTY 1.10.3 PIGSTY 1.10.3 PIGSTY 1.10.3 N/A
el10.x86_64 N/A PIGSTY 1.10.3 PIGSTY 1.10.3 PIGSTY 1.10.3 N/A
el10.aarch64 N/A PIGSTY 1.10.3 PIGSTY 1.10.3 PIGSTY 1.10.3 N/A
d12.x86_64 N/A PIGSTY 1.10.3 PIGSTY 1.10.3 PIGSTY 1.10.3 N/A
d12.aarch64 N/A PIGSTY 1.10.3 PIGSTY 1.10.3 PIGSTY 1.10.3 N/A
d13.x86_64 N/A PIGSTY 1.10.3 PIGSTY 1.10.3 PIGSTY 1.10.3 N/A
d13.aarch64 N/A PIGSTY 1.10.3 PIGSTY 1.10.3 PIGSTY 1.10.3 N/A
u22.x86_64 N/A PIGSTY 1.10.3 PIGSTY 1.10.3 PIGSTY 1.10.3 N/A
u22.aarch64 N/A PIGSTY 1.10.3 PIGSTY 1.10.3 PIGSTY 1.10.3 N/A
u24.x86_64 N/A PIGSTY 1.10.3 PIGSTY 1.10.3 PIGSTY 1.10.3 N/A
u24.aarch64 N/A PIGSTY 1.10.3 PIGSTY 1.10.3 PIGSTY 1.10.3 N/A
u26.x86_64 N/A PIGSTY 1.10.3 PIGSTY 1.10.3 PIGSTY 1.10.3 N/A
u26.aarch64 N/A PIGSTY 1.10.3 PIGSTY 1.10.3 PIGSTY 1.10.3 N/A
Package Version OS ORG SIZE File URL
orioledb-18 1.10.3 el8.x86_64 pigsty 24.3 MiB orioledb-18-1.10.3-1PGSTY.el8.x86_64.rpm
orioledb-18 1.10.3 el8.aarch64 pigsty 23.7 MiB orioledb-18-1.10.3-1PGSTY.el8.aarch64.rpm
orioledb-18 1.10.3 el9.x86_64 pigsty 23.3 MiB orioledb-18-1.10.3-1PGSTY.el9.x86_64.rpm
orioledb-18 1.10.3 el9.aarch64 pigsty 23.0 MiB orioledb-18-1.10.3-1PGSTY.el9.aarch64.rpm
orioledb-18 1.10.3 el10.x86_64 pigsty 23.4 MiB orioledb-18-1.10.3-1PGSTY.el10.x86_64.rpm
orioledb-18 1.10.3 el10.aarch64 pigsty 23.1 MiB orioledb-18-1.10.3-1PGSTY.el10.aarch64.rpm
orioledb-18 1.10.3 d12.x86_64 pigsty 23.5 MiB orioledb-18_1.10.3-1PGSTY~bookworm_amd64.deb
orioledb-18 1.10.3 d12.aarch64 pigsty 22.8 MiB orioledb-18_1.10.3-1PGSTY~bookworm_arm64.deb
orioledb-18 1.10.3 d13.x86_64 pigsty 21.2 MiB orioledb-18_1.10.3-1PGSTY~trixie_amd64.deb
orioledb-18 1.10.3 d13.aarch64 pigsty 20.5 MiB orioledb-18_1.10.3-1PGSTY~trixie_arm64.deb
orioledb-18 1.10.3 u22.x86_64 pigsty 25.5 MiB orioledb-18_1.10.3-1PGSTY~jammy_amd64.deb
orioledb-18 1.10.3 u22.aarch64 pigsty 25.2 MiB orioledb-18_1.10.3-1PGSTY~jammy_arm64.deb
orioledb-18 1.10.3 u24.x86_64 pigsty 23.3 MiB orioledb-18_1.10.3-1PGSTY~noble_amd64.deb
orioledb-18 1.10.3 u24.aarch64 pigsty 23.0 MiB orioledb-18_1.10.3-1PGSTY~noble_arm64.deb
orioledb-18 1.10.3 u26.x86_64 pigsty 22.8 MiB orioledb-18_1.10.3-1PGSTY~resolute_amd64.deb
orioledb-18 1.10.3 u26.aarch64 pigsty 22.5 MiB orioledb-18_1.10.3-1PGSTY~resolute_arm64.deb
Package Version OS ORG SIZE File URL
orioledb-17 1.10.3 el8.x86_64 pigsty 23.5 MiB orioledb-17-1.10.3-1PGSTY.el8.x86_64.rpm
orioledb-17 1.10.3 el8.aarch64 pigsty 22.9 MiB orioledb-17-1.10.3-1PGSTY.el8.aarch64.rpm
orioledb-17 1.10.3 el9.x86_64 pigsty 22.6 MiB orioledb-17-1.10.3-1PGSTY.el9.x86_64.rpm
orioledb-17 1.10.3 el9.aarch64 pigsty 22.3 MiB orioledb-17-1.10.3-1PGSTY.el9.aarch64.rpm
orioledb-17 1.10.3 el10.x86_64 pigsty 22.7 MiB orioledb-17-1.10.3-1PGSTY.el10.x86_64.rpm
orioledb-17 1.10.3 el10.aarch64 pigsty 22.4 MiB orioledb-17-1.10.3-1PGSTY.el10.aarch64.rpm
orioledb-17 1.10.3 d12.x86_64 pigsty 22.7 MiB orioledb-17_1.10.3-1PGSTY~bookworm_amd64.deb
orioledb-17 1.10.3 d12.aarch64 pigsty 22.1 MiB orioledb-17_1.10.3-1PGSTY~bookworm_arm64.deb
orioledb-17 1.10.3 d13.x86_64 pigsty 20.4 MiB orioledb-17_1.10.3-1PGSTY~trixie_amd64.deb
orioledb-17 1.10.3 d13.aarch64 pigsty 19.9 MiB orioledb-17_1.10.3-1PGSTY~trixie_arm64.deb
orioledb-17 1.10.3 u22.x86_64 pigsty 24.7 MiB orioledb-17_1.10.3-1PGSTY~jammy_amd64.deb
orioledb-17 1.10.3 u22.aarch64 pigsty 24.4 MiB orioledb-17_1.10.3-1PGSTY~jammy_arm64.deb
orioledb-17 1.10.3 u24.x86_64 pigsty 22.6 MiB orioledb-17_1.10.3-1PGSTY~noble_amd64.deb
orioledb-17 1.10.3 u24.aarch64 pigsty 22.3 MiB orioledb-17_1.10.3-1PGSTY~noble_arm64.deb
orioledb-17 1.10.3 u26.x86_64 pigsty 22.1 MiB orioledb-17_1.10.3-1PGSTY~resolute_amd64.deb
orioledb-17 1.10.3 u26.aarch64 pigsty 21.8 MiB orioledb-17_1.10.3-1PGSTY~resolute_arm64.deb
Package Version OS ORG SIZE File URL
orioledb-16 1.10.3 el8.x86_64 pigsty 22.5 MiB orioledb-16-1.10.3-1PGSTY.el8.x86_64.rpm
orioledb-16 1.10.3 el8.aarch64 pigsty 22.0 MiB orioledb-16-1.10.3-1PGSTY.el8.aarch64.rpm
orioledb-16 1.10.3 el9.x86_64 pigsty 21.8 MiB orioledb-16-1.10.3-1PGSTY.el9.x86_64.rpm
orioledb-16 1.10.3 el9.aarch64 pigsty 21.5 MiB orioledb-16-1.10.3-1PGSTY.el9.aarch64.rpm
orioledb-16 1.10.3 el10.x86_64 pigsty 21.8 MiB orioledb-16-1.10.3-1PGSTY.el10.x86_64.rpm
orioledb-16 1.10.3 el10.aarch64 pigsty 21.6 MiB orioledb-16-1.10.3-1PGSTY.el10.aarch64.rpm
orioledb-16 1.10.3 d12.x86_64 pigsty 21.8 MiB orioledb-16_1.10.3-1PGSTY~bookworm_amd64.deb
orioledb-16 1.10.3 d12.aarch64 pigsty 21.2 MiB orioledb-16_1.10.3-1PGSTY~bookworm_arm64.deb
orioledb-16 1.10.3 d13.x86_64 pigsty 19.7 MiB orioledb-16_1.10.3-1PGSTY~trixie_amd64.deb
orioledb-16 1.10.3 d13.aarch64 pigsty 19.1 MiB orioledb-16_1.10.3-1PGSTY~trixie_arm64.deb
orioledb-16 1.10.3 u22.x86_64 pigsty 23.8 MiB orioledb-16_1.10.3-1PGSTY~jammy_amd64.deb
orioledb-16 1.10.3 u22.aarch64 pigsty 23.5 MiB orioledb-16_1.10.3-1PGSTY~jammy_arm64.deb
orioledb-16 1.10.3 u24.x86_64 pigsty 21.8 MiB orioledb-16_1.10.3-1PGSTY~noble_amd64.deb
orioledb-16 1.10.3 u24.aarch64 pigsty 21.5 MiB orioledb-16_1.10.3-1PGSTY~noble_arm64.deb
orioledb-16 1.10.3 u26.x86_64 pigsty 21.3 MiB orioledb-16_1.10.3-1PGSTY~resolute_amd64.deb
orioledb-16 1.10.3 u26.aarch64 pigsty 21.0 MiB orioledb-16_1.10.3-1PGSTY~resolute_arm64.deb

Source

orioledb-1.10.3.tar.gz postgres-patches16_50.tar.gz postgres-patches17_23.tar.gz postgres-patches18_4.tar.gz

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 via package name, for the active PG version

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.

表格阅读器