model-writtenrun 7992 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Justin Pryzby submitted a fix to free the index list when index_get_partition() finds no matching partition, also replacing a redundant lfirst_oid() call with partIdx #1.
- A second patch proposed using get_rel_relispartition() for the catalog lookup, with Justin explicitly questioning whether returning false instead of raising a cache lookup error was acceptable #1.
- Michael Paquier supported the leak fix and backpatching to PostgreSQL 12, but opposed the cleanup because the existing error helps expose missing relation locks #2.
- Alvaro Herrera agreed to push the fix and expressed reservations about the helper conversion, recalling that avoiding it had been deliberate #3.
- Commit 623644f02c subsequently landed the first patch from #1 unchanged; the separate syscache cleanup was left out following the review objections.