select open change scope Open full search

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

Extensions / Functions and aggregates

weighted_mean

Weighted average aggregate function for PostgreSQL numeric values.

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

Overview

Packageweighted_mean
Version1.0.1
PostgreSQL versions10 · 11 · 12 · 13 · 14 · 15 · 16 · 17 · 18
RepositoryUnspecified
Extension typeStandard
Project statusArchived
Requires CREATE EXTENSIONYes
Requires preloadNo
TrustedNo
RelocatableYes
Stars12
Latest commit2015-09-24
Latest release2012-04-04
Catalogue updated2026-08-30

Related extensions

See also

frkn_avgC aggregate extension providing my_avg for bigint and floating-point inputs.
argmargmax, argmin, and anyold aggregate functions
weighted_statsWeighted aggregate functions
medianMedian aggregate function for input sets
binvecC helper for summing integer bit values into arrays
first_lastAggregate functions to return first or last "n" elements in a group
trimmed_aggregatesC aggregate functions that discard configurable low/high outliers before computing averages, variances, and standard deviations.
numpgsqlArray and numerical computing library for PostgreSQL
pg_aggExperimental aggregate-query support extension; its install script currently creates the untrusted PL/Python language.
kissfftFast-Fourier transformer (fft)