vptree
VP-tree implementation
vptree · VP-tree implementation
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101833 | vptree | vptree | 1.0 | RAG | BSD-3-Clause | C |
Usage
Sources:
- Official upstream README
- Official extension control file (vptree.control)
- Official extension SQL (vptree–1.0.sql)
vptree — VP-tree implementation. Use it for the corresponding vector, model, or retrieval workflow. 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
vptree_area_match(int8, vptree_area)is an extension function and returnsboolean.vptree_choose(internal, internal)is an extension function and returnsvoid.vptree_config(internal, internal)is an extension function and returnsvoid.vptree_eq_match(int8, int8)is an extension function and returnsboolean.vptree_get_distance(int8, int8)is an extension function and returnsfloat8.vptree_inner_consistent(internal, internal)is an extension function and returnsvoid.vptree_leaf_consistent(internal, internal)is an extension function and returnsboolean.vptree_picksplit(internal, internal)is an extension function and returnsvoid.vptree_areais an extension-defined type.vptree_opsis an extension-defined operator class.
Requirements and Caveats
- The reviewed control file declares default version
1.0. - 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.