Skip to content

pg_cryogen

Experimental append-only compressed table access method for PostgreSQL 12 and later.

pg_cryogen · Experimental append-only compressed table access method for PostgreSQL 12 and later.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
100054pg_cryogenpg_cryogen0.1OLAPPostgreSQLC

PostgreSQL · 12, 13, 14, 15, 16, 17, 18

Usage

Sources:

pg_cryogen is an experimental append-only table access method for PostgreSQL 12 or later. It compresses heap tuples with lz4 or zstd and implements index and bitmap scans.

CREATE EXTENSION pg_cryogen;
SET pg_cryogen.compression_method = 'zstd';
CREATE TABLE events (id bigint, payload jsonb) USING pg_cryogen;
INSERT INTO events VALUES (1, '{"ok":true}');

Only INSERT and COPY modify data, and the reviewed implementation permits inserts into only one such table per transaction. Each statement creates at least one separate block, so bulk loads are preferable. The repository is archived; pin the PostgreSQL major version, verify backup and recovery, and do not assume support for update, delete, vacuum behavior, replication, or future access-method APIs.

Table reader