Re: Avoiding superfluous buffer locking during nbtree backwards scans

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: Masahiro Ikeda <ikedamsh(at)oss(dot)nttdata(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Matthias van de Meent <boekewurm+postgres(at)gmail(dot)com>, Tomas Vondra <tomas(at)vondra(dot)me>
Subject: Re: Avoiding superfluous buffer locking during nbtree backwards scans
Date: 2024-11-12 15:55:02
Message-ID: CAH2-WznFkEs9K1PtNruti5JjawY-dwj+gkaEh_k1ZE+1xLLGkA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, Nov 10, 2024 at 11:36 PM Masahiro Ikeda
<ikedamsh(at)oss(dot)nttdata(dot)com> wrote:
> Thanks! The change made it easier for me to understand.

As follow-up to all of the recent work in this area, I'd like to add
this wrapper function to return the next item from so->currPos.

The wrapper function has extra assertions, compared to what we do
already. It's slightly more defensive, and IMV slightly clearer.

--
Peter Geoghegan

Attachment Content-Type Size
v1-0001-Use-_bt_returnitem-wrapper-function.patch application/octet-stream 4.5 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2024-11-12 16:02:53 Re: doc: pgevent.dll location
Previous Message Bernd Helmle 2024-11-12 15:43:50 Re: [PATCH] Add sortsupport for range types and btree_gist