model-writtenrun 3249 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Geoghegan reported a bug discovered while working on skip scan and supplied a reproducer and draft fix in #1.
- The reproducer triggered an assertion failure during nbtree array advancement; without assertions, the query returned correct results but unnecessarily restarted primitive scans on the same leaf page #1.
- Peter traced the problem to fragile comparisons between scan-key offsets and explained that an earlier simplification of _bt_check_compare had made a direct inequality-strategy check possible #1.
- The patch replaced those offset comparisons with the direct inequality check and retained an offset assertion that accommodates NULL behavior #1.
- Peter committed the submitted code unchanged apart from its base context on June 26, 2024, as 486c2ea25c; the supplied thread contains no review replies or further revisions after #1.