Re: Multi-parameter aggregates.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Multi-parameter aggregates.
Дата
Msg-id 2584.1132592800@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Multi-parameter aggregates.  (Berend Tober <btober@seaworthysys.com>)
Список pgsql-general
Berend Tober <btober@seaworthysys.com> writes:
> I'm stuck on not knowing how to define a
> aggregate that takes more that one variable as its argument,

That's because there isn't any way to do that.  It's on the TODO list
I believe.  In the meantime, you could possibly kluge it up by
defining a composite type to be the aggregate's argument, and calling
it like
    SELECT covariance(row(...)) FROM ...

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: Multi-parameter aggregates.
Следующее
От: Chris Kratz
Дата:
Сообщение: Rule appears not to fire on insert w/ "except"