stddev() and variance() should return NULL when there is just one input

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 1dc3a62ec7c9bd3f602689b289a1126fca12fead
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2003-04-21T00:22:24Z
Releases: 7.4.1
stddev() and variance() should return NULL when there is just one input
value, per recent discussion on pgsql-general.

Files

PathChange+/−
src/backend/utils/adt/float.c modified +5 −11
src/backend/utils/adt/numeric.c modified +13 −23