model-writtenrun 3336 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Daniel Gustafsson reported a PGresult leak during binary upgrades in #1, noting that it could become substantial with large schemas.
- The patch in #1 moved PQclear(upgrade_res) outside the conditional in binary_upgrade_set_pg_class_oids so every execution would release the query result, and Daniel requested backpatching through PostgreSQL 15.
- Tom Lane endorsed the patch in #2, explaining that his earlier Coverity-driven fix addressed the query buffer but missed the result leak.
- a8f87d5d21 landed #1 unchanged; the other listed candidate, e6fc3b70df, carries the same fix with branch-context differences.
- Daniel confirmed completion and backpatching through PostgreSQL 15 in #3, thanked Tom for reviewing, and left no outstanding work in the thread.