yesno_pg
yesnodb · yesnodb foreign data, index and table access methods for PostgreSQL
Overview
PostgreSQL · 17, 18
Usage
Sources:
yesno_pg is the experimental PostgreSQL integration for yesnodb ordinal sets. It exposes a foreign data wrapper, an index access method and a single-column table access method, with an important durability boundary between PostgreSQL and yesnodb.
Core Workflow
Install the ABI-matched upstream artifacts for PostgreSQL 17 or 18, then create the extension as a superuser. A foreign table represents one remote key as a set of ordinal values.
Access Methods
yesno provides equality posting lists and bitmap index scans. yesno_table stores a single bigint set. A server dictionary option supports named-key import through IMPORT FOREIGN SCHEMA. Inspect query plans to verify access-method selection.
Isolation and Backup
The engines do not share WAL or a commit clock. Remote writes are not atomic with PostgreSQL heap writes; back up yesnodb separately. For yesno tables, REPEATABLE READ pins a version and READ COMMITTED takes a statement snapshot, but a transaction spanning both engines can observe different commit moments. UPDATE, SELECT FOR UPDATE, ON CONFLICT, CLUSTER and TABLESAMPLE are unsupported for the table method. Build artifacts are produced by the upstream Bazel/Docker gate; this is not a general packaged PostgreSQL extension.