pgsql: Add nbtree amgettuple return item function.
pgsql: Add nbtree amgettuple return item function.
От:
Peter Geoghegan <pg@bowt.ie>
Дата:
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 Reviewed-By: Masahiro Ikeda 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(-)