select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Extensions / Functions and aggregates

count_distinct

An alternative to COUNT(DISTINCT …) aggregate, usable with HashAggregate

pgext.cloud · Source code · License text · Control file · PGXN

Overview

Packagecount_distinct
Version3.0.2
PostgreSQL versions14 · 15 · 16 · 17 · 18
RepositoryMultiple repositories
Extension typeStandard
Requires CREATE EXTENSIONYes
Requires preloadNo
TrustedNo
RelocatableYes
Stars80
Latest commit2025-08-04
Latest release2025-01-09
Catalogue updated2026-08-30

Related extensions

See also

ddsketchProvides ddsketch aggregate function
tdigestProvides tdigest aggregate function.
topntype for top-n JSONB
omnisketchdata structure for on-line agg of data into approximate sketch
datasketchesApproximate analytics sketches and aggregates for PostgreSQL
hlltype for storing hyperloglog data
intagginteger aggregator and enumerator (obsolete)
intarrayfunctions, operators, and index support for 1-D arrays of integers