Re: [PATCH] Consider window functions when reordering GROUP BY items

From: Henson Choi <assam258(at)gmail(dot)com>
To: Keyerror Smart <smartkeyerror(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: [PATCH] Consider window functions when reordering GROUP BY items
Date: 2026-11-24 03:39:41
Message-ID: CAAAe_zB2uSFFZ00phuKYHtTe8Ny91fM6vfsryaeBM9OhZLiN3g@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Zhenglong,

> Attached is v7. Apart from the docs, it is v6 rebased onto the
> current master (f03a0f87963), with no code changes. Regression tests
> pass with 0001 alone and with both patches.

Thanks for v7. The docs read well, splitting them between the two
patches makes sense, and I'm fine with the guards as they are. cfbot
is green on v7.

I also looked at planning time once more. With the GUC on, ordinary
joins grouped by their join keys plan a few tens of microseconds
slower than on master, from the extra paths and orderings the
patches consider. With the GUC off, planning time is the same as on
master. That seems a fair price for the saved sorts.

If you have nothing more to change, may I mark it Ready for
Committer?

Best regards,
Henson

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Xuneng Zhou 2026-11-24 03:40:32 Re: Set 1s WaitLatch timeout if standby limit has expired in ResolveRecoveryConflictWithBufferPin
Previous Message shihao zhong 2026-11-24 03:32:18 Re: pgsql: Don't trust NOT NULL on virtual generated columns of partitioned