Re: index prefetching

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: Tomas Vondra <tomas(at)vondra(dot)me>
Cc: Andres Freund <andres(at)anarazel(dot)de>, Alexandre Felipe <o(dot)alexandre(dot)felipe(at)gmail(dot)com>, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Melanie Plageman <melanieplageman(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Georgios <gkokolatos(at)protonmail(dot)com>, Konstantin Knizhnik <knizhnik(at)garret(dot)ru>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>
Subject: Re: index prefetching
Date: 2026-07-17 20:58:09
Message-ID: CAH2-WzmpQV7wqbwE_bW+1Ja32chnh87i=wx2Y6NkhFiuEVsBzw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Jul 11, 2026 at 1:08 PM Peter Geoghegan <pg(at)bowt(dot)ie> wrote:
> On Wed, Jul 8, 2026 at 6:14 PM Tomas Vondra <tomas(at)vondra(dot)me> wrote:
> > I took a quick look on 0001 today, because AFAIK you're intending
> > pushing it in not too distant future. I'll take a look at the other
> > parts too, but I wanted to post the 0001 feedback now.
>
> That's right. I will push 0001 in the next 7-10 days, barring any objections.

I ran out of time to commit the first patch today. Perhaps I will get
to it over the weekend. If not, it'll be at least another week or so,
since I have a work trip all throughout next week.

Attached is V31, which is intended only to fix bit rot against the
master branch. There are some small differences, but they are hardly
worth mentioning.

The only thing that's slightly interesting about V31 is that the
"Limit get_actual_variable_range leaf page reads" patch appears
earlier now (as 0002-*). I plan to make that one into a standalone
patch, with its own CF entry, once 0001 is merged. I'll then discuss
it on a dedicated thread (and stop including it in future revisions of
the index prefetching patch set).

--
Peter Geoghegan

Attachment Content-Type Size
v31-0012-WIP-aio-bufmgr-Fix-race-condition-leading-to-dea.patch application/octet-stream 3.1 KB
v31-0009-Add-EXPLAIN-IO-support-for-plain-index-scans.patch application/octet-stream 13.9 KB
v31-0011-aio-Fix-pgaio_io_wait-for-staged-IOs-B.patch application/octet-stream 6.3 KB
v31-0010-Allow-read_stream_reset-to-not-wait-for-IO-compl.patch application/octet-stream 20.7 KB
v31-0001-Add-slot-based-table-AM-index-scan-interface.patch application/octet-stream 119.3 KB
v31-0007-heapam-Optimize-pin-transfers-during-index-scans.patch application/octet-stream 6.1 KB
v31-0008-heapam-Add-index-scan-I-O-prefetching.patch application/octet-stream 54.9 KB
v31-0005-WIP-Adopt-amgetbatch-interface-in-GiST-index-AM.patch application/octet-stream 112.9 KB
v31-0006-WIP-Adopt-amgetbatch-interface-in-SP-GiST-index-.patch application/octet-stream 70.4 KB
v31-0004-Adopt-amgetbatch-interface-in-hash-index-AM.patch application/octet-stream 48.1 KB
v31-0002-Limit-get_actual_variable_range-leaf-page-reads.patch application/octet-stream 7.8 KB
v31-0003-Add-amgetbatch-interface-and-adopt-it-in-nbtree.patch application/octet-stream 271.1 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2026-07-17 21:15:05 Re: Possible Visibility Map corruption in supported branches?
Previous Message Chao Li 2026-07-17 20:53:09 Re: pg_plan_advice: fix parsing underscore in numbers