Skip to content

pg_volvec

Experimental vectorized execution of selected PostgreSQL OLAP plans.

pg_volvec · Experimental vectorized execution of selected PostgreSQL OLAP plans.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
102078pg_volvecpg_volvec1.0OLAPPostgreSQLC++

Usage

Sources:

pg_volvec hooks the PostgreSQL executor and runs supported plan subtrees through a columnar engine, while keeping PostgreSQL planning. It is an experimental executor with LLVM-based expression and tuple-deforming support.

Core Workflow

CREATE EXTENSION pg_volvec;
LOAD 'pg_volvec';
SET pg_volvec.enabled = on;
EXPLAIN SELECT sum(v) FROM (VALUES (1), (2), (3)) AS sample(v);

Operational Boundaries

The README requires PostgreSQL 17+ at the specified upstream revision with LLVM JIT enabled; this is not a guarantee for every major or minor build. Install/load as a superuser. The installation SQL loads the library for the current backend; other sessions need their own load or an appropriate preload configuration. pg_volvec.enabled, pg_volvec.trace_hooks and pg_volvec.jit_deform control the implementation. Unsupported plans fall back to PostgreSQL; verify correctness and performance on representative queries. Historical scripts using a different extension name are not the current enablement path.

Table reader