avg ( smallint ) → numericComputes the average (arithmetic mean) of all the non-null input values.
Functions / Aggregate Functions
Computes the average (arithmetic mean) of all the non-null input values.
Reading PG 18current·documented in 27 of 27 versions, 7.1 to 20
Signatures & examples
avg ( integer ) → numericComputes the average (arithmetic mean) of all the non-null input values.
avg ( bigint ) → numericComputes the average (arithmetic mean) of all the non-null input values.
avg ( numeric ) → numericComputes the average (arithmetic mean) of all the non-null input values.
avg ( real ) → double precisionComputes the average (arithmetic mean) of all the non-null input values.
avg ( double precision ) → double precisionComputes the average (arithmetic mean) of all the non-null input values.
avg ( interval ) → intervalComputes the average (arithmetic mean) of all the non-null input values.
Definition snapshot: b7bd9cda · English manual source