Re: ANY_VALUE aggregate

Поиск
Список
Период
Сортировка
От Vik Fearing
Тема Re: ANY_VALUE aggregate
Дата
Msg-id 90e7a585-4613-7a00-cfd9-6c33473f30db@postgresfriends.org
обсуждение исходный текст
Ответ на Re: ANY_VALUE aggregate  (Corey Huinker <corey.huinker@gmail.com>)
Ответы Re: ANY_VALUE aggregate  (Isaac Morland <isaac.morland@gmail.com>)
Список pgsql-hackers
On 12/5/22 20:31, Corey Huinker wrote:
> 
> Adding to the pile of wanted aggregates: in the past I've lobbied for
> only_value() which is like first_value() but it raises an error on
> encountering a second value.

I have had use for this in the past, but I can't remember why.  What is 
your use case for it?  I will happily write a patch for it, and also 
submit it to the SQL Committee for inclusion in the standard.  I need to 
justify why it's a good idea, though, and we would need to consider what 
to do with nulls now that there is <unique null treatment>.
-- 
Vik Fearing




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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: Perform streaming logical transactions by background workers and parallel apply
Следующее
От: Nathan Bossart
Дата:
Сообщение: Re: Generate pg_stat_get_* functions with Macros