Re: First Aggregate Funtion?

Поиск
Список
Период
Сортировка
От Marko Tiikkaja
Тема Re: First Aggregate Funtion?
Дата
Msg-id 55AD1CA4.5040002@joh.to
обсуждение исходный текст
Ответ на Re: First Aggregate Funtion?  (Corey Huinker <corey.huinker@gmail.com>)
Ответы Re: First Aggregate Funtion?  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Список pgsql-hackers
On 7/20/15 6:02 PM, Corey Huinker wrote:
> By using only(a.name_of_the_thing) we'd have a bit more clarity that the
> author expected all of those values to be the same across the aggregate
> window, and discovering otherwise was reason enough to fail the query.
>
> *IF* we're considering adding these to core, I think that only() would be
> just a slight modification of the last() implementation, and could be done
> at the same time.
>
> [1] I don't care what it gets named. I just want the functionality.

A big +1 from me.  In fact, I wrote a patch implementing this for 9.5 
but never got around to finishing it.


.m



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

Предыдущее
От: Corey Huinker
Дата:
Сообщение: Re: First Aggregate Funtion?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: All-zero page in GIN index causes assertion failure