Skip to content

antfly_postgres

Antfly-backed index access method, search functions and row synchronization.

antfly · Antfly-backed index access method, search functions and row synchronization.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
102313antfly_postgresantfly0.1.0FTSApache-2.0Rust

PostgreSQL · 13, 14, 15, 16, 17, 18

Usage

Sources:

antfly_postgres 0.1.0 connects PostgreSQL search indexes and SQL functions to an external Antfly service.

Core Workflow

The index sends existing rows during creation and synchronizes inserts. antfly_search returns identifiers, scores and JSONB data; antfly_sync_trigger provides a separate row-change path. Query builders antfly_postgres.search, antfly_postgres.semantic and antfly_postgres.hybrid produce structured search requests.

CREATE EXTENSION antfly_postgres;
SELECT antfly_status('http://localhost:8080/db/v1/');
CREATE TABLE antfly_docs (content text);
CREATE INDEX ON antfly_docs USING antfly (content)
  WITH (url = 'http://localhost:8080/db/v1/', collection = 'docs');
SELECT * FROM antfly_docs WHERE content @@@ 'database search';

Operational Boundaries

Requires PostgreSQL 13–18, superuser installation and a reachable Antfly API. Include the /db/v1/ prefix in the configured URL; the bare default does not reach that API. Search sends data outside PostgreSQL, so configure network access and service credentials deliberately. Do not assume PostgreSQL rollback also rolls back remote writes. This is the renamed monorepo successor to pgaf.

Antfly distribution 0.3.1 still carries extension version 0.1.0; the distribution tag is not the SQL extension version.

Table reader