Re: branch-free tuplesort partitioning - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: branch-free tuplesort partitioning
Date
Msg-id CAH2-Wz=8fUc75SzvYxZmv45EHQsoz5k_Y49ciqd8v0m26x5LCg@mail.gmail.com
Whole thread Raw
Responses Re: branch-free tuplesort partitioning
List pgsql-hackers
On Mon, Nov 25, 2024 at 7:14 AM John Naylor <johncnaylorls@gmail.com> wrote:
> To evaluate this technique further, it'll need some work to handle
> duplicates well.

I suggest using a test program for this that Tom wrote nearly 20 years
ago to validate changes that were made to the Bentley & McIlroy qsort,
available from here:

https://www.postgresql.org/message-id/18732.1142967137@sss.pgh.pa.us

It generates most of the standardized inputs described by the B&M
paper. For example, it will generate "Sawtooth" inputs. (Though I
don't see "organ pipe" input -- that one was a more adversarial case,
described by their paper, which might also be interesting.)

--
Peter Geoghegan



pgsql-hackers by date:

Previous
From: Nazir Bilal Yavuz
Date:
Subject: Re: meson and check-tests
Next
From: Karina Litskevich
Date:
Subject: Re: Use more CppAsString2() in pg_amcheck.c