model-writtenrun 1643 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- The thread began with Michael Paquier announcing immediate removal of completed unnamed portals to improve temporary-file cleanup and statement attribution, crediting Frédéric Yhuel, Sami Imseih, and Mircea Cadariu in #1.
- Robert Haas objected that this logging improvement changed the wire protocol, depended inconsistently on immediate-commit state, and could break subsequent Describe or Execute messages in #2; Tom Lane agreed that compatibility problems were likely in #3.
- Michael explained the difficulty of retaining query context and accepted reverting as an option in #4, while Robert advocated preserving the protocol and either retaining suitable query context or suppressing misleading context in #5.
- Mircea proposed storing the creating query with each Vfd and including it in temporary-file log messages while removing the immediate portal drop in #6.
- Michael questioned putting query strings in the file-storage layer and supplied an independent PortalCleanup() alternative in #7, while warning that subsequent Execute messages could still require the executor state.
- Mircea revised his proposal to avoid the tcopprot.h dependency in #8, but Sami still questioned the layering and duplicate statement logging, and demonstrated that Michael’s cleanup alternative could assert on a repeated Execute in #9.
- Michael abandoned the early-cleanup alternative because it required additional portal state and announced the revert in #10; 910690415b restored the previous portal lifetime, documentation, and logging-test expectations without adopting either attached implementation.
- Mircea then supplied a separate WITH HOLD cursor test showing temporary-file cleanup during COMMIT through PersistHoldablePortal() in #11, and Michael agreed that this behavior deserved coverage in #12.
- Michael committed that test with only diagnostic wording changes as e7cde9dad2 and announced it in #13; Mircea acknowledged the result in #14, leaving the protocol change reverted, the additional test landed, and improved query attribution unresolved.