Re: Improving scalability of Parallel Bitmap Heap/Index Scan

From: John Naylor <johncnaylorls(at)gmail(dot)com>
To: David Geier <geidav(dot)pg(at)gmail(dot)com>
Cc: John Naylor <john(dot)naylor(at)enterprisedb(dot)com>, PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Improving scalability of Parallel Bitmap Heap/Index Scan
Date: 2026-10-13 02:17:08
Message-ID: CANWCAZaN=NhJ=WY1X72pgVE97Tt92U4DJq8+C_OKaYQD_2-9QA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Oct 5, 2026 at 3:53 PM David Geier <geidav(dot)pg(at)gmail(dot)com> wrote:
> > On this note, there has been a proposed (but as far as I know untested)
> > patch to speed up this sort in a much simpler way, in this thread
> >
> > https://www.postgresql.org/message-id/
> > CA%2BhUKGKztHEWm676csTFjYzortziWmOcf8HDss2Zr0muZ2xfEg%40mail.gmail.com
> > <https://www.postgresql.org/message-id/
> > CA%2BhUKGKztHEWm676csTFjYzortziWmOcf8HDss2Zr0muZ2xfEg%40mail.gmail.com>
> >
> > where you may find this patch
> >
> > https://www.postgresql.org/message-id/attachment/120560/0007-Specialize-
> > pagetable-sort-routines-in-tidbitmap.c.patch <https://
> > www.postgresql.org/message-id/attachment/120560/0007-Specialize-
> > pagetable-sort-routines-in-tidbitmap.c.patch>
>
> Thanks for the pointer. I've applied that change to my patch set. See
> other mail. It helped a lot further reducing the sort time in each
> parallel worker.

If that's the case, let's get that piece in committable shape first.
That will make sure PG20 gets some improvement regardless of what
happens with your other proposal, and allows us to isolate the effect
of the proposed architectural change.

--
John Naylor
Amazon Web Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message shihao zhong 2026-10-13 02:19:24 [PG19] Bugs found comparing 19 with 18, list before I open threads
Previous Message wenhui qiu 2026-10-13 02:09:36 Re: Wrong results from an antijoin