jsonb_stats
jsonb_stats · Mergeable JSONB statistics and exact numeric aggregation.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102312 | jsonb_stats | jsonb_stats | 3.2.0 | STAT | Rust |
PostgreSQL · 18
Usage
Sources:
jsonb_stats 3.2.0 builds mergeable statistical summaries for dynamically named JSONB variables.
Core Workflow
stat constructs a typed value. jsonb_stats_agg aggregates statistics and jsonb_stats_merge_agg combines existing summaries. Numeric state includes count, sum, sum of squares, minimum and maximum; the 3.x representation uses exact arithmetic rather than an order-dependent floating-point accumulator.
Operational Boundaries
This release’s build feature targets PostgreSQL 18. Installation is marked non-superuser, but the role still needs database/schema privileges for its objects. When upgrading, install matching files, reconnect to load the new library, then run ALTER EXTENSION UPDATE. Do not mix persisted summaries from incompatible major representations without following upstream migration guidance.