vpack
postgresql-vpack · VelocyPack data type, path type, operators, casts, and JSON/BSON conversion support for PostgreSQL.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100305 | vpack | postgresql-vpack | 0.1 | TYPE | Unknown | C++ |
Usage
Sources:
vpack adds ArangoDB VelocyPack document storage to PostgreSQL. The vpack type is broadly analogous to jsonb but supports additional binary/logical types; vpackpath provides a JSONPath-like query language. The extension also offers JSON/JSONB/BSON conversion, document operators, B-tree/hash/GIN operator classes, builders, and path functions.
The README says some pieces and tests are unfinished, tags are not fully supported by vpackpath, type-to-tag mappings are not fully specified, and several jsonb-style functions are missing. It also attributes some benchmark speed to omitted input validation. Validate every untrusted payload and do not assume JSON-equivalent canonicalization or comparison semantics.
VelocyPack, BSON, JSON, and PostgreSQL types do not have lossless one-to-one mappings. Test numeric ranges, duplicate keys, binary values, tags, path errors, ordering, index rechecks, and round trips. Pin the upstream VelocyPack and Mongo C-driver ABIs, and verify binary dump/restore and logical replication before durable use.