citusdata/postgresql-hll
PostgreSQL extension adding HyperLogLog data structures as a native data type observed · 2026-08-28
Health v2 · maintenance only
83/100
- Activity 85
- Release rhythm 72
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 144.0
- age_days: 4958
- days_rel: 30
- days_push: 92
- n_releases_24m: 3
Adoption not part of the score
1228 stars · 115 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A PostgreSQL extension that adds HyperLogLog as a native data type for approximate distinct value counting with tunable precision. It uses a hierarchy of algorithms (EMPTY, EXPLICIT, SPARSE, FULL) to improve accuracy and memory efficiency over the original HLL paper.
Use cases
- count distinct values in postgres with low memory
- estimate unique visitors per day in sql
- compute approximate cardinality of billions of values
- run fast distinct count aggregations in analytics queries
- store probabilistic sets as a postgres column type
- merge hll sketches across distributed postgres nodes
When to choose
- you need approximate distinct counts at massive scale with tiny fixed memory footprint
- you want to aggregate and merge cardinality sketches directly in SQL
- you need tunable precision trading accuracy for storage in Postgres
When to avoid
- you need exact distinct counts rather than estimates
- you are not using PostgreSQL or a compatible database
- your cardinalities are small enough that plain COUNT(DISTINCT) is fast enough
Facets
library · maturity stable
database data-science analytics databases analytics big-data self-hosted postgresql-extension hyperloglog sketching distinct-count probabilistic-data-structures approximate-counting linux macos docker
1 source
- readme: https://github.com/citusdata/postgresql-hll · fetched 2026-08-28 · 9bf8b47aa526
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| citusdata/postgresql-hll | main | 83 |
For agents
markdown · JSON · MCP: product_card(name="citusdata/postgresql-hll")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem