select open change scope Open full search

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

Extensions / Functions and aggregates

approx_count

Fast approximate row counts for tables and indexes in PostgreSQL 14+ from pg class.reltuples, with a governed ANALYZE refresh

pgext.cloud · Source code · Documentation · Control file

Overview

Packageapprox_count
Version1.0
RepositoryUnspecified
Extension typeStandard
Project statusActive
Requires CREATE EXTENSIONYes
Requires preloadNo
TrustedNo
RelocatableNo
Schemaapprox_count
Stars1
Latest commit2026-06-23
Latest release2026-06-23
Catalogue updated2026-08-30

Related extensions

See also

alohadb_approxApproximate query processing: HLL, Count-Min Sketch, Top-K
probabilistic_counterA C data type and aggregates for approximate distinct counting using the Flajolet-Martin probabilistic counting algorithm.
count_distinctAn alternative to COUNT(DISTINCT …) aggregate, usable with HashAggregate