variance aggregates per SQL:2003 - Mailing list pgsql-patches

From Neil Conway
Subject variance aggregates per SQL:2003
Date
Msg-id 1141772040.20504.5.camel@localhost.localdomain
Whole thread Raw
Responses Re: variance aggregates per SQL:2003
Re: variance aggregates per SQL:2003
List pgsql-patches
This patch implements some new aggregate functions defined by SQL2003:
stddev_pop(), stddev_samp(), var_pop(), and var_samp(). stddev_samp()
and var_samp() are identical to the existing stddev() and variance()
aggregates, so I've made the latter aliases for the former.

I noticed that SQL2003 does not allow DISTINCT to be specified for these
aggregate functions. I can't really see the rationale for this
restriction, and it would be fairly ugly to implement as far as I can
tell. Thoughts?

-Neil


Attachment

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: CREATE SYNONYM ...
Next
From: Alvaro Herrera
Date:
Subject: Re: CREATE SYNONYM ...