Add nbtree amgettuple return item function.
authorPeter Geoghegan <[email protected]>
Wed, 13 Nov 2024 14:50:57 +0000 (09:50 -0500)
committerPeter Geoghegan <[email protected]>
Wed, 13 Nov 2024 14:50:57 +0000 (09:50 -0500)
commit4e6e375b0039a2afc5830ec5a161536428767e96
tree443e6b3f066719345e9a68006e740ac0a0a8d052
parent38c18710b37a2d0e343a8d6b6333cff31498459b
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 <[email protected]>
Reviewed-By: Masahiro Ikeda <[email protected]>
Discussion: https://postgr.es/m/CAH2-WznFkEs9K1PtNruti5JjawY-dwj+gkaEh_k1ZE+1xLLGkA@mail.gmail.com
src/backend/access/nbtree/nbtsearch.c