Re: Add PRODUCT() aggregate function

From: Vik Fearing <vik(at)postgresfriends(dot)org>
To: Jeevan Chalke <jeevan(dot)chalke(at)enterprisedb(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add PRODUCT() aggregate function
Date: 2026-09-10 14:52:16
Message-ID: 73be70b2-30df-4367-8227-ad9d00d28e55@postgresfriends.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On 23/06/2026 09:48, Jeevan Chalke wrote:
>
> * Naming.  I went with PRODUCT(); other systems and discussions have used
>   names like PROD or MUL.  Happy to change it if there is a consensus.

Hi!

It should be called PRODUCT and it should accept the syntax

    PRODUCT(col, 1 ON EMPTY)

for when there are no non-nulls in the input.

This will be required by the next edition of the SQL standard. The exact
value "1" is required by the standard, but I think we should allow any
a_expr there.

--

Vik Fearing

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Bossart 2026-09-10 14:59:19 Re: pg_*_advice: tsv load failure, etc.
Previous Message Greg Burd 2026-09-10 14:50:47 Re: Adding basic NUMA awareness