]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Clarify why _bt_killitems sorts its items array.
authorPeter Geoghegan <pg@bowt.ie>
Thu, 11 Dec 2025 01:50:47 +0000 (20:50 -0500)
committerPeter Geoghegan <pg@bowt.ie>
Thu, 11 Dec 2025 01:50:47 +0000 (20:50 -0500)
commite16c6f024718cf854f5b76a4a2ed402f1a7911f1
tree64614fde92dfead6be3ba21271b828083beff9e0
parent06761b6096b661e838512e3a83f71345b59710b9
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 <pg@bowt.ie>
Suggested-by: Victor Yegorov <vyegorov@gmail.com>
Discussion: https://postgr.es/m/CAGnEboirgArezZDNeFrR8FOGvKF-Xok333s2iVwWi65gZf8MEA@mail.gmail.com
src/backend/access/nbtree/nbtutils.c