Add nbtree amgettuple return item function.

Peter Geoghegan <pg@bowt.ie>

Commit: 4e6e375b0039a2afc5830ec5a161536428767e96
Author: Peter Geoghegan <pg@bowt.ie>
Date: 2024-11-13T14:50:57Z
Releases: 18.0
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

Files

PathChange+/−
src/backend/access/nbtree/nbtsearch.c modified +34 −32

Discussion