pgbdd
Provides bdd and dictionary data types.
pgbdd · Provides bdd and dictionary data types.
Overview
Usage
Sources:
- Official upstream README
- Official extension control file (pgbdd.control)
- Official extension SQL (pgbdd–0.0.1.sql)
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
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 returnsdictionary.alg_bdd(alg cstring, expression cstring)is an extension function and returnsbdd.alternatives(dict dictionary, var cstring)is an extension function and returnstext.and_accum(internal bdd, next bdd)is an extension function and returnsbdd.bdd_bytea_in(expression bytea)is an extension function and returnsbdd.bdd_equal(lhs_bdd bdd,rhs_bdd bdd)is an extension function and returnsBOOLEAN.bdd_equiv(lhs_bdd bdd,rhs_bdd bdd)is an extension function and returnsBOOLEAN.bdd_fast_equiv(lhs_bdd bdd,rhs_bdd bdd)is an extension function and returnsBOOLEAN.bdd_in(expression cstring)is an extension function and returnsbdd.bdd_out(dict bdd)is an extension function and returnscstring.contains(bdd bdd, var cstring, val integer)is an extension function and returnsBOOLEAN.debug(dict dictionary)is an extension function and returnstext.del(d dictionary, vardefs text)is an extension function and returnsdictionary.dictionary_in(dictname cstring)is an extension function and returnsdictionary.
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.