Skip to content

pixels_fdw

Foreign data wrapper for Pixels columnar files

pixels-postgres · Foreign data wrapper for Pixels columnar files

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
102045pixels_fdwpixels-postgres1.0FDWPostgreSQLC++

Usage

Sources:

pixels_fdw reads Pixels columnar files through PostgreSQL foreign tables. This research integration uses the Pixels C++ reader and server-local file paths. Upstream explicitly requires preload and a server restart.

Enablement

Append the library to the existing preload list and restart after installing matching library dependencies.

shared_preload_libraries = 'pixels_fdw'

Core Workflow

The foreign table columns must match the input files. Paths and filter expressions use the upstream reader syntax.

CREATE EXTENSION pixels_fdw;
CREATE SERVER pixels_server FOREIGN DATA WRAPPER pixels_fdw;
CREATE FOREIGN TABLE example (id int, name varchar, birthday date, score decimal(15,2))
  SERVER pixels_server
  OPTIONS (filename '|/srv/pixels/data|', filters 'id > 1 & score < 90');
SELECT * FROM example;

Dependencies and Limits

The source build links Pixels C++ components, Protocol Buffers and the C++ runtime. filename selects files and filters provides reader-side filtering. The control declares version 1.0 and relocatability, but no PostgreSQL-major matrix is documented. Restrict who can define file-backed foreign tables; the database service account must be able to read the files. No write workflow is documented.

Table reader