Skip to content

pg_ac

PostgreSQL extension for full text search

pg_ac · PostgreSQL extension for full text search

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101511pg_acpg_ac0.1FTSUnknownC

Usage

Sources:

pg_ac — PostgreSQL 12 or later C compiler with C99 support pg_config available in PATH. Use it for the corresponding text-search, parsing, or linguistic workflow. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.

Core Workflow

CREATE EXTENSION pg_ac;

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

  • ac_add(bigint, text) is an extension function and returns boolean.
  • ac_build(text[]) is an extension function and returns bigint.
  • ac_build(tsvector) is an extension function and returns bigint.
  • ac_deserialize(bytea) is an extension function and returns bigint.
  • ac_destroy(bigint) is an extension function and returns boolean.
  • ac_fini() is an extension function and returns boolean.
  • ac_init() is an extension function and returns boolean.
  • ac_match(bigint, text) is an extension function and returns integer[].
  • ac_rank_simple(bigint, text) is an extension function and returns real.
  • ac_remove(bigint, text) is an extension function and returns boolean.
  • ac_search(bigint, text) is an extension function and returns boolean.
  • ac_search(bigint, tsquery) is an extension function and returns boolean.
  • ac_serialize(bigint) is an extension function and returns bytea.

Requirements and Caveats

  • The reviewed control file declares default version 0.1.
  • The control file marks the extension as relocatable.
  • Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.

Table reader