pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrei Lepikhov <lepihov@gmail.com>
To: David Rowley <dgrowleyml@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Corey Huinker <corey.huinker@gmail.com>
Subject: Re: Allow a prosupport function to be attached to an aggregate
Date: Tue, 18 Aug 2026 08:31:44 +0200
Message-ID: <1850b0e8-ec3b-47cb-bcba-5648a82280d4@gmail.com> (raw)
In-Reply-To: <CAApHDvpE-_CnMOQ=Y8wveUk-MrUzsyR66fXGq+R7j_g4tmra8g@mail.gmail.com>
References: <8f58c96d-d3c7-4c0f-9898-116f00eeaff6@gmail.com>
	<CAApHDvpE-_CnMOQ=Y8wveUk-MrUzsyR66fXGq+R7j_g4tmra8g@mail.gmail.com>

On 18/08/2026 06:56, David Rowley wrote:
> On Mon, 17 Aug 2026 at 18:13, Andrei Lepikhov <lepihov@gmail.com> wrote:
>> Commit 42473b3b31 added SupportRequestSimplifyAggref, which the planner issues
>> for any Aggref whose function names a support function. Nice, but extensions
>> cannot reach it, because there is no way to attach a support function to an
>> aggregate:
>>
>> ALTER FUNCTION pg_catalog.sum(numeric) SUPPORT numeric_support;
>> ERROR:  "pg_catalog.sum" is an aggregate function
> 
> I failed to realise that there was no way to set that for user-defined
> aggregates. Not good. While I do agree that lack of extensibility is
> not aligned with the spirit of the project, my current thoughts are
> that now is a bit late to add this to v19.
> 
> Is delaying this until v20 fine for you?
Yes, I can do it manually in pg_catalog for now - rewriting prosupport and
setting the dependency in the pg_depend. There’s no rush - it’s just about
keeping things tidy.

-- 
regards, Andrei Lepikhov,
pgEdge






view thread (12+ messages)  latest in thread

Message-ID: <1850b0e8-ec3b-47cb-bcba-5648a82280d4@gmail.com>
Permalink:  ../1850b0e8-ec3b-47cb-bcba-5648a82280d4@gmail.com/
Also on:    postgresql.org/message-id/1850b0e8-ec3b-47cb-bcba-5648a82280d4@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: lepihov@gmail.com, dgrowleyml@gmail.com, corey.huinker@gmail.com
  Subject: Re: Allow a prosupport function to be attached to an aggregate
  In-Reply-To: <1850b0e8-ec3b-47cb-bcba-5648a82280d4@gmail.com>
  References: <8f58c96d-d3c7-4c0f-9898-116f00eeaff6@gmail.com> <CAApHDvpE-_CnMOQ=Y8wveUk-MrUzsyR66fXGq+R7j_g4tmra8g@mail.gmail.com> <1850b0e8-ec3b-47cb-bcba-5648a82280d4@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox