ANY_VALUE aggregate

Поиск
Список
Период
Сортировка
От Vik Fearing
Тема ANY_VALUE aggregate
Дата
Msg-id 5cff866c-10a8-d2df-32cb-e9072e6b04a2@postgresfriends.org
обсуждение исходный текст
Ответы Re: ANY_VALUE aggregate  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: ANY_VALUE aggregate  (Vik Fearing <vik@postgresfriends.org>)
Список pgsql-hackers
The SQL:2023 Standard defines a new aggregate named ANY_VALUE.  It 
returns an implementation-dependent (i.e. non-deterministic) value from 
the rows in its group.

PFA an implementation of this aggregate.

Ideally, the transition function would stop being called after the first 
non-null was found, and then the entire aggregation would stop when all 
functions say they are finished[*], but this patch does not go anywhere 
near that far.

This patch is based off of commit fb958b5da8.

[*] I can imagine something like array_agg(c ORDER BY x LIMIT 5) to get 
the top five of something without going through a LATERAL subquery.
-- 
Vik Fearing
Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Missing MaterialPath support in reparameterize_path_by_child
Следующее
От: Robert Haas
Дата:
Сообщение: Re: pg_basebackup: add test about zstd compress option