diff options
author | Neil Conway <neilc@samurai.com> | 2006-03-10 20:15:28 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2006-03-10 20:15:28 +0000 |
commit | 0ebf1cc83465a4058c172d74c823cce0bebe0e11 (patch) | |
tree | 40fc45919c06e9177a6ae5128a89b65773d36f16 /src/backend/utils/adt/numutils.c | |
parent | ab812ef3260adb8f12e0fbc66a32080283def0e2 (diff) | |
download | postgresql-0ebf1cc83465a4058c172d74c823cce0bebe0e11.tar.gz postgresql-0ebf1cc83465a4058c172d74c823cce0bebe0e11.zip |
Implement 4 new aggregate functions from SQL2003. Specifically: var_pop(),
var_samp(), stddev_pop(), and stddev_samp(). var_samp() and stddev_samp()
are just renamings of the historical Postgres aggregates variance() and
stddev() -- the latter names have been kept for backward compatibility.
This patch includes updates for the documentation and regression tests.
The catversion has been bumped.
NB: SQL2003 requires that DISTINCT not be specified for any of these
aggregates. Per discussion on -patches, I have NOT implemented this
restriction: if the user asks for stddev(DISTINCT x), presumably they
know what they are doing.
Diffstat (limited to 'src/backend/utils/adt/numutils.c')
0 files changed, 0 insertions, 0 deletions