model-writtenrun 3290 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- In #1, Heikki Linnakangas proposed clarifying relcache handling after investigating an abort-time invalidation bug, attaching its prerequisite fix together with index-rebuild simplification and a split of RelationClearRelation() into removal, invalidation, and rebuilding operations.
- Heikki explained in #1 that callers should choose the operation explicitly and questioned whether refreshing physical addresses during invalidation was necessary, proposing to defer that work until rebuilding.
- In #2, jian he suggested reusing RelationInvalidateRelation() inside the new removal and rebuilding functions and identified an obsolete comment about reference counts and locking.
- Heikki confirmed adopting that feedback in #3: 8e2e266221 landed the index-call simplification from #1 with a comment correction, and 2b9b8ebbf8 landed the function split with shared cleanup and corrected comments; the prerequisite invalidation helper was already present by then.
- In #4, Heikki reported a failure on buildfarm member prion after the refactoring, despite having tested locally with forced relcache release.
- In #5, Heikki reported reproducing the failure by running regression tests alongside repeated VACUUM FULL pg_database commands and committing b82c877e76, which restored physical-address refresh for shared indexes invalidated early during backend startup.
- The thread ended with the refactorings and follow-up fix committed; in #6, Tom Lane noted similar failures on two buildfarm members without forced-release options and suggested that timing explained their occurrence.