Re: index prefetching

From: Andres Freund <andres(at)anarazel(dot)de>
To: Peter Geoghegan <pg(at)bowt(dot)ie>
Cc: Tomas Vondra <tomas(at)vondra(dot)me>, 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-02-27 04:29:48
Message-ID: hgxnzi45tbqi4jenh774d6ly2eiym5fj2mous2zxtp6z4lpu7t@jd247begzlqf
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 2026-02-26 23:28:02 -0500, Peter Geoghegan wrote:
> On Thu, Feb 26, 2026 at 11:18 PM Andres Freund <andres(at)anarazel(dot)de> wrote:
> > Of course this is a silly query, but you'd also see that with a mergejoin or
> > such.
>
> Can you post the query?

Oops, I had intended to paste it with the first of the explains...

SET enable_indexscan_prefetch = 1; SELECT pg_buffercache_evict_relation('pgbench_accounts'); SELECT pg_prewarm('pgbench_accounts_pkey');EXPLAIN (ANALYZE) SELECT * FROM pgbench_accounts ORDER BY aid;

Greetings,

Andres Freund

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2026-02-27 04:34:44 Re: Partial Mode in Aggregate Functions
Previous Message Peter Geoghegan 2026-02-27 04:28:02 Re: index prefetching