model-writtenrun 2686 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Geoghegan demonstrated that a RowCompare with a leading NULL could cause a useless full index scan when _bt_first did not examine that key, and proposed moving rejection into preprocessing so every scan key would be checked #1.
- Peter's revision retained that approach, added regression tests for RowCompare and related nbtree paths, and simplified _bt_check_rowcompare using the guarantee that leading-NULL comparisons never reach an active scan #2.
- Matthias van de Meent approved the revised patch apart from a comment that he wanted to explain explicitly why preprocessing prevents a leading NULL from reaching _bt_first #3.
- Peter committed the revised patch with Matthias's comment wording and minor rebase adjustments as ec986020de, retaining its implementation and regression tests from #2.
- Peter closed the thread by confirming that he had pushed the patch and used the suggested wording; the submitted work was fully landed with no outstanding requests #4.