model-writtenrun 4730 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tomas Vondra discovered incorrect multi-column BRIN condition handling while working on BRIN SK_SEARCHARRAY support #1.
- His reproducer showed that adding a condition increased heap pages scanned from 236 to 448 because bringetbitmap() could overwrite an earlier rejection with a later scan key's result #1.
- The attached patch combined consistency results with AND and stopped evaluating further columns once a range was rejected; Tomas planned to commit after more testing #1.
- Tomas committed a simplified fix that retained the early exit, omitted the redundant AND assignments, and revised the comment e72910f808.
- The sole submitted fix landed, with the commit identifying PostgreSQL 14 as the affected starting version and requesting backpatches through 14; the supplied thread contains no review replies or further work #1 e72910f808.