Re: Add PRODUCT() aggregate function - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Add PRODUCT() aggregate function
Date
Msg-id 949268.1789094760@sss.pgh.pa.us
Whole thread
In response to Re: Add PRODUCT() aggregate function  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
... btw, there is another interesting definitional question here.
AFAICS, "ON EMPTY" effectively is an override for the aggregate's
final function.  Does it actually make sense when there is a final
function?  Specifically, if the final function were willing to
provide non-null output for zero rows in, should we still override
it?  SUM and PRODUCT don't provide a lot of guidance here.

I'm also wondering idly how this interacts with "inverse transition
functions" for aggregates used as window functions.

            regards, tom lane



pgsql-hackers by date:

Previous
From: "Hayato Kuroda (Fujitsu)"
Date:
Subject: RE: Review items for EXCEPT TABLE publication
Next
From: "Hayato Kuroda (Fujitsu)"
Date:
Subject: RE: pg_createsubscriber does not check output_plugin_libraries