Skip to content

pgbloomfun

Scalable Bloom-filter functions operating on byte arrays

pgbloomfun · Scalable Bloom-filter functions operating on byte arrays

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
102262pgbloomfunpgbloomfun0.1FUNCBSD-2-ClauseC

Usage

Sources:

pgbloomfun 0.1 stores scalable Bloom filters in byte arrays. It supplies functions rather than an index access method. This is legacy source from 2013; compatibility with current PostgreSQL releases has not been established.

Core Workflow

CREATE EXTENSION pgbloomfun;
SELECT bloom_check(bloom_add(bloom_init(500, 3, 0.01), 'hello'), 'hello');

bloom_init(initial_capacity, growth_factor, error_rate) creates a filter. bloom_add returns the updated byte array; save that result when maintaining a stored filter. bloom_check tests possible membership and bloom_stats reports filter statistics.

Limits

Positive matches can be false positives and need exact verification. Filters do not track table changes automatically. Installation uses C functions and requires a superuser; the extension is relocatable and no preload is specified. Build metadata substitutes control version 0.1 and selects JSON output where supported. Verify restoration and extension compatibility before using old stored filters on a new server.

Table reader