pg_intmap
Compressed integer-to-integer map
pg_intmap · Compressed integer-to-integer map
Overview
Usage
Sources:
- Official upstream README
- Official extension control file (pg_intmap.control)
- Official extension SQL (pg_intmap–0.1.sql)
pg_intmap — Compressed integer-to-integer map. Use it when application data needs this type, domain, or its operators. Upstream describes this capability as experimental.
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
intarr_get_val(intarr, int4)is an extension function and returnsint8.intarr_in(cstring)is an extension function and returnsintarr.intarr_out(intarr)is an extension function and returnscstring.intmap(int8[], int8[])is an extension function and returnsintmap.intmap_get_val(intmap, int8)is an extension function and returnsint8.intmap_in(cstring)is an extension function and returnsintmap.intmap_meta(intmap)is an extension function and returnscstring.intmap_out(intmap)is an extension function and returnscstring.intarris an extension-defined type.intmapis an extension-defined type.
Requirements and Caveats
- The reviewed control file declares default version
0.1. - The control file marks the extension as relocatable.
- Upstream labels part or all of the project experimental.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.