Skip to content

bluefin

Append-only compressed table access method for time-series workloads.

advanced_storage_pack · Append-only compressed table access method for time-series workloads.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101868bluefinadvanced_storage_pack1.7.0OLAPProprietaryUnknown

PostgreSQL · 15, 16, 17, 18

Usage

Sources:

bluefin is an append-only EDB table access method that compacts tuple headers and delta-compresses adjacent data, targeting time-series and monitoring workloads.

Enablement

Bluefin requires PostgreSQL-family version 15 or later. Install Advanced Storage Pack 1.7.0, preload it, restart, and create the extension:

shared_preload_libraries = 'bluefin'
CREATE EXTENSION bluefin;

Use Partitioned Append-Only Storage

CREATE TABLE truck_logs (
  ts        timestamptz,
  truck_id  integer,
  latitude  float8,
  longitude float8
) PARTITION BY RANGE (ts);

CREATE TABLE truck_logs_2026_08
PARTITION OF truck_logs
FOR VALUES FROM ('2026-08-01') TO ('2026-09-01')
USING bluefin;

Bluefin does not permit UPDATE or DELETE. Retention should use partition detach/drop rather than row deletion.

Estimate and Operate

SELECT *
FROM bluefin.estimate_compression('existing_heap', 10.0);

Compression estimates sample heap pages and do not move data. Before migration, validate insert ordering, partition rotation, index support, crash recovery, backup/restore, and replica behavior. The append-only contract is a schema-design boundary; applications that require corrections must write compensating rows or use a different TAM.

Table reader