pgsql: Add nbtree amgettuple return item function. - Mailing list pgsql-committers

From Peter Geoghegan
Subject pgsql: Add nbtree amgettuple return item function.
Date
Msg-id E1tBEiA-001dZy-1E@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Add nbtree amgettuple return item function.

This makes it easier to add precondition assertions.  We now assert that
the last call to _bt_readpage succeeded, and that the current item index
is within the bounds of the currPos items array.

Author: Peter Geoghegan <pg@bowt.ie>
Reviewed-By: Masahiro Ikeda <ikedamsh@oss.nttdata.com>
Discussion: https://postgr.es/m/CAH2-WznFkEs9K1PtNruti5JjawY-dwj+gkaEh_k1ZE+1xLLGkA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4e6e375b0039a2afc5830ec5a161536428767e96

Modified Files
--------------
src/backend/access/nbtree/nbtsearch.c | 66 ++++++++++++++++++-----------------
1 file changed, 34 insertions(+), 32 deletions(-)


pgsql-committers by date:

Previous
From: Álvaro Herrera
Date:
Subject: pgsql: Fix pg_upgrade's cross-version tests when old < 18
Next
From: Michael Paquier
Date:
Subject: pgsql: contrib/lo: Add test for function lo_oid()