Skip to content

pgbdd

Provides bdd and dictionary data types.

pgbdd · Provides bdd and dictionary data types.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101658pgbddpgbdd0.0.1TYPEGPL-3.0C

Usage

Sources:

pgbdd — See file(s) example-dictionary.sql(.log) for an example using the ‘dictionary’ type. Use it when application data needs this type, domain, or its operators. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.

Core Workflow

CREATE EXTENSION pgbdd;

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

  • add(d dictionary, vardefs text) is an extension function and returns dictionary.
  • alg_bdd(alg cstring, expression cstring) is an extension function and returns bdd.
  • alternatives(dict dictionary, var cstring) is an extension function and returns text.
  • and_accum(internal bdd, next bdd) is an extension function and returns bdd.
  • bdd_bytea_in(expression bytea) is an extension function and returns bdd.
  • bdd_equal(lhs_bdd bdd,rhs_bdd bdd) is an extension function and returns BOOLEAN.
  • bdd_equiv(lhs_bdd bdd,rhs_bdd bdd) is an extension function and returns BOOLEAN.
  • bdd_fast_equiv(lhs_bdd bdd,rhs_bdd bdd) is an extension function and returns BOOLEAN.
  • bdd_in(expression cstring) is an extension function and returns bdd.
  • bdd_out(dict bdd) is an extension function and returns cstring.
  • contains(bdd bdd, var cstring, val integer) is an extension function and returns BOOLEAN.
  • debug(dict dictionary) is an extension function and returns text.
  • del(d dictionary, vardefs text) is an extension function and returns dictionary.
  • dictionary_in(dictname cstring) is an extension function and returns dictionary.

Requirements and Caveats

  • The reviewed control file declares default version 0.0.1.
  • The control file marks the extension as non-relocatable.
  • The control file requires a superuser for installation.
  • Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.

Table reader