Re: variance aggregates per SQL:2003

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: variance aggregates per SQL:2003
Дата
Msg-id 7783.1141788333@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: variance aggregates per SQL:2003  (Neil Conway <neilc@samurai.com>)
Список 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 по дате отправления:

Предыдущее
От: "Jonah H. Harris"
Дата:
Сообщение: Re: CREATE SYNONYM ...
Следующее
От: Tom Lane
Дата:
Сообщение: Re: CREATE SYNONYM ...