Skip to content

vectorize_engine

Vectorized query execution extension for PostgreSQL

vectorize_engine · Vectorized query execution extension for PostgreSQL

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
100056vectorize_enginevectorize_engine1.0OLAPPostgreSQLC

Usage

Sources:

vectorize_engine version 1.0 is a prototype vectorized executor for PostgreSQL 9.6. A post-planner hook replaces supported sequential-scan and aggregate nodes with custom scan nodes; a GUC leaves the feature disabled by default.

Example

Build PostgreSQL with suitable SIMD flags, put vectorize_engine in shared_preload_libraries, restart, and then run:

CREATE EXTENSION vectorize_engine;
SET enable_vectorize_engine = on;
EXPLAIN (ANALYZE, BUFFERS) SELECT category, sum(amount)
FROM benchmark_rows GROUP BY category;

The source copies and modifies PostgreSQL executor code and is explicitly based on PostgreSQL 9.6; the repository has not changed since 2020. Only a limited node/type/expression subset is vectorized, with fallback intended for unsupported plans. It is not compatible with modern server internals without substantial porting. Use only on a matching disposable benchmark instance and compare every result and plan with the feature disabled.

Table reader