model-writtenrun 2707 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Geoghegan reported a wrong-answer bug affecting PostgreSQL 17 and development versions, supplying a reproducer and a patch that clears scanBehind at the start of array advancement in #1.
- Peter explained that a truncated high key could leave scanBehind set across leaf pages, causing advancement of a non-required array key to reject a matching tuple on the next page in #1.
- Peter committed the fix as 9e85b20da7 from #1, adapting it to the target base and adding explanatory text, with a backpatch to PostgreSQL 17; his announcement emphasized the narrow triggering conditions and expected assertion failures in assertion-enabled builds #2.
- Laurenz Albe later reported a customer encountering the bug: REINDEX did not correct the query result, but upgrading to PostgreSQL 17.3 did #3; this post-commit report does not establish pre-commit review.
- Peter replied that REINDEX corrected his original reproducer and explained how bulk index construction and ordinary page splits differ in suffix truncation, leaving the customer's differing REINDEX behavior unexplained while the fix remained landed #4.