model-writtenrun 8221 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Anastasia Lubennikova reported BRIN summarization failures caused by concurrently inserted HOT tuples missing from the cached root mapping and supplied a draft that tracked mapping bounds and rebuilt the mapping when necessary #1.
- Anastasia cleaned up the fix and supplied versions covering all supported branches #2; Alvaro Herrera raised ABI compatibility concerns about changing heap_get_root_tuples and considered whether repeated rescanning was necessary #3.
- Peter Geoghegan suggested a connection to a concurrent catalog REINDEX failure #4, but Alvaro later explained that ordinary index builds prevent the concurrent heap updates required by this bug #9.
- Anastasia explained why one mapping refresh suffices and reported a second race found during Alexander Lakhin's testing: concurrent desummarization could trigger a false BRIN corruption error; holding both page locks caused a deadlock, so she proposed retrying instead #5.
- Anastasia submitted both fixes, extending HOT mapping checks to skipped entries and adding one retry for the desummarization race #6.
- Alvaro replaced the desummarization retry with treating the range as unsummarized #7, then confirmed that the existing block-number check already protects against summary-slot reuse #11; this patch landed unchanged as 1f42d35a1d.
- Alvaro simplified the HOT fix to refresh mappings when an entry is InvalidOffsetNumber, removing the new bookkeeping and signature change #8; he then recognized that concurrent index builds also need this handling and removed the anyvisible assertion in the final patch #10 #12.
- Anastasia reported successful testing of the simplified HOT fix #13, which landed unchanged as a811ea5bde, with both authors credited; Alvaro confirmed backpatching to all branches #14.
- Tom Lane reported BRIN test instability on the CLOBBER_CACHE_ALWAYS buildfarm animal hyrax #15, and Alvaro suspected autovacuum was summarizing ranges before the test could do so #16.
- Alvaro disabled autovacuum for the BRIN test table in 6e70443eda and posted the matching patch while reporting that repeated subset tests had not reproduced the failure #17; all three fixes had landed by the thread's end, although the test-instability diagnosis remained unconfirmed.