Re: Consider explicit incremental sort for Append and MergeAppend

Richard Guo <guofenglinux@gmail.com>

From: Richard Guo <guofenglinux@gmail.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Andrei Lepikhov <lepihov@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2025-07-07T07:37:54Z
Lists: pgsql-hackers

Attachments

On Thu, May 22, 2025 at 6:07 PM Richard Guo <guofenglinux@gmail.com> wrote:
> So, I think it's generally safe to use incremental sort whenever
> possible.  There might be some corner cases where incremental sort is
> slower than full sort, and I think it would be best to address those
> in nodeIncrementalSort.c, as Robert suggested.

Here's the latest rebase.  I'm planning to push it soon, barring any
objections.

Thanks
Richard

Commits

  1. Consider explicit incremental sort for Append and MergeAppend