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

From Tom Lane
Subject Re: variance aggregates per SQL:2003
Date
Msg-id 7783.1141788333@sss.pgh.pa.us
Whole thread Raw
In response to Re: variance aggregates per SQL:2003  (Neil Conway <neilc@samurai.com>)
List pgsql-patches
Neil Conway <neilc@samurai.com> writes:
> Well, I realize that stddev(DISTINCT x) != stddev(x) and that most
> people are going to be interested in stddev(x), but I don't think it's
> inconceivable for someone to be interested in stddev(DISTINCT x).
> Explicitly checking for and rejecting it doesn't serve any useful
> purpose that I can see, beyond compliance with the letter of the
> standard -- if the user asks for stddev(DISTINCT x), are we really
> providing useful behavior if we refuse to calculate it?

Agreed, refusing this is not something we should waste code on.

            regards, tom lane

pgsql-patches by date:

Previous
From: "Jonah H. Harris"
Date:
Subject: Re: CREATE SYNONYM ...
Next
From: Tom Lane
Date:
Subject: Re: CREATE SYNONYM ...