Re: [PATCH 0/1] Put presorted aggregate sort keys first in Aggregate

From: zengxx <xiangxin_zeng(at)qq(dot)com>
To: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: [PATCH 0/1] Put presorted aggregate sort keys first in Aggregate
Date: 2026-11-27 05:25:20
Message-ID: tencent_C98434EB992F5F9343A5BD4DC973164D5806@qq.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Provide a simpler version. Simplify comments and split code and regression tests.
Might be far better for reviewer.

Patch 1 is a small planner-only change that
speeds up ordered aggregates under GROUP BY when the aggregate's
argument is varlena, for example

SELECT g, string_agg(v, ',' ORDER BY k) FROM t GROUP BY g;

Patch 2 adds the regression tests.

Attachment Content-Type Size
0001-Put-presorted-aggregate-sort-keys-first-in-Aggregate.patch application/octet-stream 5.5 KB
0002-Add-regression-tests-for-presorted-aggregate-sort-ke.patch application/octet-stream 20.4 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Osama Abdul Qader 2026-11-27 05:54:29 Re: Fix deparsing of SUBSTRING SIMILAR with an operator as first argument
Previous Message Hayato Kuroda (Fujitsu) 2026-11-27 05:10:00 RE: Preserve conflict log table during upgrade