model-writtenrun 8613 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Luo reported cache-reference-leak warnings with sepgsql on REL_12_STABLE and supplied a reproducer involving partitioned tables, dropped columns, and whole-row RETURNING expressions in #1.
- Michael Luo attached a fix that releases the pg_attribute cache tuple before skipping a dropped column in fixup_whole_row_references() in #1.
- Tom Lane committed the fix as fc576b7c4f, restructuring the guard to reach the existing cache release, improving comments, and adding regression coverage.
- The commit message for fc576b7c4f explains that the code fix was backpatched throughout the supported branches, while the tests went only as far back as v10 because adapting them to 9.6 was judged unnecessary.
- Tom Lane confirmed that the fix had been pushed in #2, closing the thread with no outstanding work identified.