bigintarray
Postgres extension like intarray, but for bigints
bigintarray · Postgres extension like intarray, but for bigints
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101296 | bigintarray | bigintarray | 1.0 | FUNC | Unknown | C |
Usage
Sources:
- Official upstream README
- Official extension control file (bigintarray.control)
- Official extension SQL (bigintarray–1.0.sql)
bigintarray — The bigintarray extension provides functions, operators, and index support for one-dimensional arrays of bigints (bigint[]), following the same behavior as PostgreSQL’s built-in intarray extension but for bigint (8-byte integer) arrays instead of integer (4-byte integer) arrays. Use it when SQL needs these specialized functions or aggregates. 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
bigintarray_del_elem(_int8, int8)is an extension function and returns_int8.bigintarray_push_array(_int8, _int8)is an extension function and returns_int8.bigintarray_push_elem(_int8, int8)is an extension function and returns_int8.bigintset(int8)is an extension function and returns_int8.bigintset_subtract(_int8, _int8)is an extension function and returns_int8.bigintset_union_elem(_int8, int8)is an extension function and returns_int8.boolop(_int8, query_bigint)is an extension function.bqarr_in(cstring)is an extension function and returnsquery_bigint.bqarr_out(query_bigint)is an extension function and returnscstring.g_bigint_compress(internal)is an extension function and returnsinternal.g_bigint_consistent(internal,_int8,smallint,oid,internal)is an extension function.g_bigint_decompress(internal)is an extension function and returnsinternal.g_bigint_options(internal)is an extension function and returnsvoid.g_bigint_penalty(internal,internal,internal)is an extension function and returnsinternal.
Requirements and Caveats
- The reviewed control file declares default version
1.0. - The control file marks the extension as relocatable.
- The control file marks the extension as trusted.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.