Clarify why _bt_killitems sorts its items array.

Make it clear why _bt_killitems sorts the scan's so->killedItems[]
array.  Also add an assertion to the _bt_killitems loop (that iterates
through this array) to verify it accesses tuples in leaf page order.

Follow-up to commit bfb335df58.

Author: Peter Geoghegan <[email protected]>
Suggested-by: Victor Yegorov <[email protected]>
Discussion: 
https://postgr.es/m/cagneboirgarezzdnefrr8fogvkf-xok333s2ivwwi65gzf8...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e16c6f024718cf854f5b76a4a2ed402f1a7911f1

Modified Files
--------------
src/backend/access/nbtree/nbtutils.c | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)

Reply via email to