Skip to content

pg_biscuit

A fast bitmap-based index for PostgreSQL

pg_biscuit · A fast bitmap-based index for PostgreSQL

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101519pg_biscuitpg_biscuit1.0FTSMITC
Relationships
Requiresplpgsql

Usage

Sources:

pg_biscuit — A PostgreSQL Index Access Method (IAM) for high-performance pattern matching on text columns. Biscuit indexes are specifically designed to accelerate LIKE queries with arbitrary wildcards. Use it for the corresponding text-search, parsing, or linguistic workflow. Its extension dependencies must be installed and validated first.

Core Workflow

CREATE EXTENSION pg_biscuit;

Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.

Important Objects

  • biscuit_handler(internal) is an extension function and returns index_am_handler.
  • biscuit_index_stats(oid) is an extension function and returns text.
  • biscuit_like_support(internal) is an extension function.
  • biscuit_multicolumn_enabled() is an extension function and returns boolean.
  • biscuit_indexes is an extension-defined view.
  • biscuit_indexes_detailed is an extension-defined view.
  • biscuit_version is a table installed or managed by the extension.
  • products is a table installed or managed by the extension.
  • biscuit is an extension-defined access method.
  • biscuit_bpchar_ops is an extension-defined operator class.
  • biscuit_text_ops is an extension-defined operator class.
  • biscuit_varchar_ops is an extension-defined operator class.

Requirements and Caveats

  • The reviewed control file declares default version 1.0.
  • Install the confirmed extension dependencies first: plpgsql.
  • The control file marks the extension as non-relocatable.
  • The PGXN sources above document the pg_biscuit identity; the current upstream repository publishes the renamed biscuit extension, so review its migration boundary before substituting it.
  • Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.

Table reader