Re: BitmapHeapScan streaming read user and prelim refactoring

From: Melanie Plageman <melanieplageman(at)gmail(dot)com>
To: Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>
Cc: Dilip Kumar <dilipbalaut(at)gmail(dot)com>, Tomas Vondra <tomas(at)vondra(dot)me>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: BitmapHeapScan streaming read user and prelim refactoring
Date: 2025-01-30 20:36:12
Message-ID: CAAKRu_as499kHb9B4B4=+c+4p+OF_Bibd4KEdoqyBgjEaEUdgA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Jan 30, 2025 at 3:02 AM Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com> wrote:
>
> On Thu, 30 Jan 2025 at 00:38, Melanie Plageman
> <melanieplageman(at)gmail(dot)com> wrote:
> >
> > On Wed, Jan 22, 2025 at 4:24 PM Melanie Plageman
> > <melanieplageman(at)gmail(dot)com> wrote:
> > >
> > > 0001 is just the refactoring to push the setup into a helper.
> > > 0002-0003 are required refactoring of the TBMIterateResult and
> > > TBMIterator to support the read stream API.
> > > 0004 implements using the read stream API and removing the old prefetching code.
> > > 0005 removes the table_scan_bitmap_next_block() callback, as it is not
> > > really used anymore in BitmapHeapNext() to get the next block.
> > >
> > > I could use review feedback on all of them. 0001 should be ready to
> > > push once I get some review.
> >
> > Bilal mentioned offlist that 0001 had some indentation issues in one
> > of the comments. v27 attached.
>
> I have no other comments, 0001 LGTM.

Cool, thanks!

I pushed v27-0001.

Attached v28 is rebased and has a few updates/cleanup. All patches in
the set need review and I need to do some benchmarking of v28-0003.

- Melanie

Attachment Content-Type Size
v28-0003-BitmapHeapScan-uses-read-stream-API.patch application/octet-stream 30.9 KB
v28-0001-Hard-code-TBMIterateResult-offsets-array-size.patch application/octet-stream 5.4 KB
v28-0002-Separate-TBM-Shared-Private-Iterator-and-TBMIter.patch application/octet-stream 19.9 KB
v28-0004-Remove-table-AM-callback-scan_bitmap_next_block.patch application/octet-stream 22.0 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Christensen 2025-01-30 20:55:00 Re: Adding comments to help understand psql hidden queries
Previous Message Pavel Borisov 2025-01-30 20:32:03 Re: Using Expanded Objects other than Arrays from plpgsql