Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wwDMd-001pjs-2B for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Aug 2026 06:31:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wwDMb-00EHQS-1l for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Aug 2026 06:31:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wwDMb-00EHQK-0r for pgsql-hackers@lists.postgresql.org; Tue, 18 Aug 2026 06:31:58 +0000 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wwDMa-00000001AlM-39Yh for pgsql-hackers@lists.postgresql.org; Tue, 18 Aug 2026 06:31:57 +0000 Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-39c74c469e8so27916991fa.0 for ; Mon, 17 Aug 2026 23:31:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787034715; x=1787639515; darn=lists.postgresql.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=9BCDE5q/kTNPUbcBOKUXQ+HhERUTKoRoYnb5mQ+j+u8=; b=d+FC0KtM5+z+opW7cI1rJuneUBMuZG4r3ulmkLkzcah4s4e20hmXLxGPz+RMCzihXn DpsgAeDmpxPAa+NyC7C8TTEnQ4osLaXKaIRQ69VY2S+RioF1FK2W9Y7XWZ3cznz4a2t6 QCe8DcV9AqRCWaTpLLngn6g+5vGrbVHRsYfKys8JLAjEZ0ZS3yOm7y0nQ3q9GA31fxDN PrcUijR8PrU7Rq/zPlc1npG7P1aw9l91UtJEIPix5L/Rhd5iSkIQZwCaPQU6iGiLHiw5 j+6vaJbFyBECoR1wWjcHOZ15gmQAKnsVxpC4E6yjmY2ch5cCvvsSSCD48+t8cYXZXjQ4 D4Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787034715; x=1787639515; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=9BCDE5q/kTNPUbcBOKUXQ+HhERUTKoRoYnb5mQ+j+u8=; b=bierh2mzGxyHAe4odvSLdRZ63JzYlpZS5VfLbFLGcqJzd42EYn0QAa8eUe0R5L/N3d XI2ssv4nQzqbrixALsLKcKcmNI07n2jpj8BmTm4tHn3WWJrvyQ3/NJdQYI1/xtETwGeA y0gI39K9DAAF2P1BI6ru0Ca3fS83E6NyIgOH1Q45L7xdlTJ0KxP7TgGHkfh5Cp9ngivK /9+qCmNIcwDaDcgLHeue3QDhw3K6qbgKK+1wUv4YgXjIuiWM8sCr+68Me5tWIBZCXJ3U X7oTi5fQQu5CP+AZ+w8gstZEjWxQplCNvzsDIVMHFXpEshfjyJnn1QBvwOctDKp812rC W1Qg== X-Gm-Message-State: AOJu0YyN8UjProgCLavuwTHKL95h/bpP0mmK9FuuZN6o+Cf808t+ClUl u26cfkWa+Z242gQ9juavvXr9cuYKoCw2eEHxpyN/ZJfRtuKQNtsOm7SW X-Gm-Gg: AR+sD12RbPu+BnKtJVanSm/qfMz1GBUmagbG2xrrKMHJvottcz0w7PnibnxFnvjUhR2 +SpC+geGQNngthkqkCiEmDEpy6wVnYVhaMmmMwBUPCkprvSR+Q2h8vRXF4zSiC2qheVhnCsBIVq j0yW5oH4Izrr5VhNSvHeYH68H9zVpqDMfusecLGqkBqzeeVzEIalxeZWwk0kR4tMwVDA93iqvJa h2bIbk+lqGsDd4SE//adtuDddYMrCoughZ3g2ywxdgZSoEKsgzq9A9MjEiFxLzTyzgKDHnhpbni fiBQ0iFvx8R//6EaZIg+mSa3meRcYw8vhCLBGCwwEDCnz2UoWLDZCkwmhJkozqSZ0RZnwb0ygmU RwJ1J5XB2WM8njHSaTndPOv5FvXyFe8OBt2dtPPD63SKf04QdGOjS32FKHmxWCx1zUaPj4l0uNb TQkHtW0mOJY+DtJDDJ3oenNxzX4R0lWHliIShs1UCJ2djVKfABvJgLggR6P0bAm4Zx1ut0+3M/g FvIYx8811nbUA== X-Received: by 2002:a05:651c:513:b0:3a1:4f33:f64b with SMTP id 38308e7fff4ca-3a14f34044cmr17177531fa.8.1787034714683; Mon, 17 Aug 2026 23:31:54 -0700 (PDT) Received: from [172.20.10.12] ([77.211.4.23]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-3a16b1f23dbsm10231321fa.39.2026.08.17.23.31.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Aug 2026 23:31:52 -0700 (PDT) Message-ID: <1850b0e8-ec3b-47cb-bcba-5648a82280d4@gmail.com> Date: Tue, 18 Aug 2026 08:31:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Allow a prosupport function to be attached to an aggregate To: David Rowley Cc: PostgreSQL Hackers , Corey Huinker References: <8f58c96d-d3c7-4c0f-9898-116f00eeaff6@gmail.com> Content-Language: en-US From: Andrei Lepikhov In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 18/08/2026 06:56, David Rowley wrote: > On Mon, 17 Aug 2026 at 18:13, Andrei Lepikhov 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