Re: ANY_VALUE aggregate - Mailing list pgsql-hackers

From Tom Lane
Subject Re: ANY_VALUE aggregate
Date
Msg-id 3575780.1674057356@sss.pgh.pa.us
Whole thread Raw
In response to Re: ANY_VALUE aggregate  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Responses Re: ANY_VALUE aggregate
List pgsql-hackers
Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes:
> On 05.12.22 21:18, Vik Fearing wrote:
>> On 12/5/22 15:57, Vik Fearing wrote:
>>> 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.

> Since the transition function is declared strict, null values don't need 
> to be checked.

Hmm, but should it be strict?  That means that what it's returning
is *not* "any value" but "any non-null value".  What does the draft
spec have to say about that?

            regards, tom lane



pgsql-hackers by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: [DOCS] Stats views and functions not in order?
Next
From: Vik Fearing
Date:
Subject: Re: ANY_VALUE aggregate