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 <p...@bowt.ie> Reviewed-By: Masahiro Ikeda <ikeda...@oss.nttdata.com> Discussion: https://postgr.es/m/cah2-wznfkes9k1ptnruti5jjawy-dwj+gkaeh_k1ze+1xll...@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(-)