hashset
Provides hashset type.
hashset · Provides hashset type.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101393 | hashset | hashset | 0.0.1 | TYPE | PostgreSQL | C |
Usage
Sources:
- Official upstream README
- Official extension control file (hashset.control)
- Official extension SQL (hashset–0.0.1.sql)
hashset — This PostgreSQL extension implements hashset, a data structure (type) providing a collection of unique integer items with fast lookup. Use it when application data needs this type, domain, or its operators. Upstream explicitly says it is not production-ready.
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
hashset_add(int4hashset, int)is an extension function and returnsint4hashset.hashset_capacity(int4hashset)is an extension function and returnsbigint.hashset_cardinality(int4hashset)is an extension function and returnsbigint.hashset_cmp(int4hashset, int4hashset)is an extension function and returnsinteger.hashset_collisions(int4hashset)is an extension function and returnsbigint.hashset_contains(int4hashset, int)is an extension function and returnsboolean.hashset_difference(int4hashset, int4hashset)is an extension function and returnsint4hashset.hashset_eq(int4hashset, int4hashset)is an extension function and returnsboolean.hashset_ge(int4hashset, int4hashset)is an extension function and returnsboolean.hashset_gt(int4hashset, int4hashset)is an extension function and returnsboolean.hashset_hash(int4hashset)is an extension function and returnsinteger.hashset_intersection(int4hashset, int4hashset)is an extension function and returnsint4hashset.hashset_le(int4hashset, int4hashset)is an extension function and returnsboolean.hashset_lt(int4hashset, int4hashset)is an extension function and returnsboolean.
Requirements and Caveats
- The reviewed control file declares default version
0.0.1. - The control file marks the extension as relocatable.
- Upstream explicitly says the project is not production-ready.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.