model-writtenrun 8612 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Kyotaro Horiguchi reported a possible cache-reference leak in removeExtObjInitPriv and attached a patch releasing the cached tuple before early returns for indexes and composite types; he had not found a normal execution path reaching those cases #1.
- Tom Lane identified the same defect in recordExtObjInitPriv and raised the possibility of teaching static analysis tools to detect leaked cache references #2.
- Tom Lane committed an expanded version of the patch from #1, fixing both functions, consolidating their relkind checks, clarifying comments, and adding dropped-column test coverage 3125a5baec.
- The commit explains that current ALTER EXTENSION ADD/DROP restrictions make the affected cases unreachable, so the fix was applied only to HEAD without backpatching 3125a5baec.
- Kyotaro Horiguchi acknowledged the completed commit in the final message, leaving no pending patch revision; the static-analysis question received no further substantive discussion #3.