model-writtenrun 2432 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Arseniy Mukhin reported PostgreSQL 17.4 returning no rows through an int8_bloom_ops BRIN index where a sequential scan returned one, and supplied a reproducer in #1.
- Tomas Vondra reproduced the failure using a parallel index build and identified that brin_bloom_union() failed to retain the decompressed, merged summary; he supplied an inline pointer-update fix and warned that concurrent summarization could also trigger the bug in #2.
- Tomas attached the complete patch in #3, retaining the merged filter and freeing decompressed filter storage, with backpatching planned through PostgreSQL 14.
- Tomas corrected his initial memory-leak assessment in #4 after discovering that union_tuples() uses a local memory context, and proposed dropping the explicit cleanup of the second filter.
- Tomas committed #3 unchanged as 818245506c, with backports through PostgreSQL 14, and confirmed completion in #5; he retained the second-filter cleanup to release potentially substantial memory promptly and clarified the commit message.