pg_bitcount
Bit-count scalar and aggregate functions for integers and bit strings.
pg_bitcount · Bit-count scalar and aggregate functions for integers and bit strings.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101902 | pg_bitcount | pg_bitcount | 0.0.3 | FUNC | MIT | C |
PostgreSQL · 11, 12, 13
Usage
Sources:
pg_bitcount Bit-count scalar and aggregate functions for integers and bit strings.
Enablement
Install the files for the intended server, then create pg_bitcount in the target database:
Core Workflow
The following example is taken from the reviewed upstream documentation. Adapt object names, paths, credentials, and workload values before use.
Main Objects
The reviewed install surface includes these prominent objects:
| Object | Kind | Operational role |
|---|---|---|
public.pg_bitcount | FUNCTION | Callable function from the reviewed install surface. |
public.pg_int_to_bit_agg | AGGREGATE | Aggregate exposed by the extension. |
public.pg_int_to_bit_agg_transfn | FUNCTION | Callable function from the reviewed install surface. |
Operations and Boundaries
- The verified PostgreSQL-major evidence covers 11, 12, 13; do not infer unlisted majors.
- Catalog lifecycle is archived; test upgrades, dump/restore, and server compatibility before production use.