model-writtenrun 7993 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tomas Vondra opened the thread with #1, fixing BRIN summaries that retained external TOAST pointers by detoasting and optionally recompressing stored values, and raised the need to reindex potentially affected existing indexes.
- In #2, Tomas added regression tests for dangling TOAST references and inconsistent size-limit errors, using concurrent index creation to wait for transactions before vacuum removed the referenced data.
- Alvaro Herrera reviewed the patches in #3, supplied include and comment fixes plus a tested temporary-table alternative, recommended dropping the page-size-dependent test, and questioned the inherited conditional-compilation scaffolding.
- Tomas accepted dropping the size-limit test in #4 but favored retaining the concurrent-index setup for backpatch compatibility and keeping the scaffolding consistent with indextuple.c; he and Alvaro discussed possible future handling of oversized summaries in #4 and #5, without including it in this fix.
- Tomas committed 7577dd8480 using the fix and detoasting test from #2 plus the include and comment changes from #3, leaving out the size-limit test and temporary-table alternative.
- In #6, Tomas confirmed backpatching through PostgreSQL 9.5 and explained that retaining the concurrent-index setup avoided additional branch differences; the fix was complete, while the thread established no additional remedy for existing affected indexes.