Clarify why _bt_killitems sorts its items array.
Peter Geoghegan <pg@bowt.ie>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/nbtree/nbtutils.c | modified | +9 −4 |
Discussion
- Returning nbtree posting list TIDs in DESC order during backwards scans 17 messages · 2025-06-16 → 2025-12-11