Skip to content

bloom_fulon

Experimental pgrx index access method for PostgreSQL, created for learning purposes.

bloom_fulon · Experimental pgrx index access method for PostgreSQL, created for learning purposes.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
100919bloom_fulonbloom_fulon0.0.0FEATUnknownRust

PostgreSQL · 11, 12, 13, 14, 15, 16

Usage

Sources:

bloom_fulon is an unfinished pgrx example that registers a PostgreSQL index access method. Version 0.0.0 is useful for studying access-method callbacks, but it is not a functional Bloom index and must not hold production data.

Core Workflow

Creating the extension registers the bloom_fulon access method and a default int4_ops operator class for integer equality:

CREATE EXTENSION bloom_fulon;

CREATE TABLE bloom_demo (id integer);
CREATE INDEX bloom_demo_idx ON bloom_demo USING bloom_fulon (id)
  WITH (size = 10);

The size relation option defaults to 10 and accepts values from -10 through 100. It is only a demonstration option; the implementation does not use it to build a real filter.

Operational Boundary

The build callback reports zero indexed tuples, insertion returns without storing an entry, and vacuum callbacks perform no maintenance. Both amgettuple and amgetbitmap are absent, so the access method cannot return matching rows. Its cost estimate is fixed at 1e10 to discourage planner use.

The control file requires superuser installation and is non-relocatable. The reviewed manifest defines features for PostgreSQL 11 through 16, but that build matrix does not make the implementation complete. Use bloom_fulon only in a disposable development database for access-method experiments.

Table reader