Re: ANY_VALUE aggregate

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ANY_VALUE aggregate
Дата
Msg-id 3324132.1670263479@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: ANY_VALUE aggregate  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: ANY_VALUE aggregate
Список pgsql-hackers
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> Can we please add "first_value" and "last_value" if we are going to add
> "some_random_value" to our library of aggregates?

First and last according to what ordering?  We have those in the
window-aggregate case, and I don't think we want to encourage people
to believe that "first" and "last" are meaningful otherwise.

ANY_VALUE at least makes it clear that you're getting an unspecified
one of the inputs.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Error-safe user functions
Следующее
От: Robert Haas
Дата:
Сообщение: Re: ANY_VALUE aggregate