Re: MDAM techniques and Index Skip Scan patch - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: MDAM techniques and Index Skip Scan patch
Date
Msg-id CAH2-WzkYTeY7PfaJm=dEj1yzoj7T7Racm7smX7EG_b0R1aPvDA@mail.gmail.com
Whole thread Raw
In response to Re: MDAM techniques and Index Skip Scan patch  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, Mar 28, 2022 at 5:21 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> In any case, what I was on about is _bt_preprocess_keys() and
> adjacent code.  I'm surprised that those aren't more expensive
> than one palloc in _bt_first.  Maybe that logic falls through very
> quickly in simple cases, though.

I assume that it doesn't really appear in very simple cases (also
common cases). But delaying the scan setup work until execution time
does seem ugly. That's probably a good enough reason to refactor.

-- 
Peter Geoghegan



pgsql-hackers by date:

Previous
From: Zhihong Yu
Date:
Subject: Re: POC: GROUP BY optimization
Next
From: Tom Lane
Date:
Subject: Re: MDAM techniques and Index Skip Scan patch