model-writtenrun 1705 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Apr 2025 · 6 entries
- Frédéric Yhuel reported that extended-protocol unnamed portals could attribute temporary-file usage to a later SELECT 1, supplying JDBC and Python reproductions in #1 and an initial PortalDrop query-string override in #2.
- Sami Imseih traced the problem to replacement of an unnamed portal during the next Bind and proposed saving and restoring debug_query_string around cleanup in #4.
- Tom Lane warned that a portal's query string could have a shorter lifetime than the portal and suggested clearing attribution or dropping the old unnamed portal before setting monitoring state in #5; Guillaume Lelarge preferred omitting attribution over blaming the wrong query in #7.
- Frédéric added early cleanup in the simple-query and Bind handlers in #9, but retained the disputed query-string override; subsequent discussion identified incorrect PREPARE attribution in #14.
- Sami proposed dropping portals immediately after completed execution in #15, Frédéric tested several client and prepared-statement cases in #16, and Sami posted the implementation in #17.
- After finding pipelining and named-portal problems, Sami restricted cleanup to completed unnamed portals in #18; Frédéric confirmed explicit-transaction, implicit-transaction, and pipeline behavior and supplied TAP coverage in #19.
Aug - Nov 2025 · 14 entries
- In August, Frédéric rejected completion-time cleanup as inconsistent with the documented protocol and returned to cleanup before the next query's monitoring updates, including tests, in #20; he added Meson registration in #21.
- Sami moved cleanup from the protocol dispatcher into the query handlers and tracked unnamed-portal existence in #22; Mircea Cadariu tested that version and added a CreatePortalOnly optimization in #23.
- Sami asked to separate the creation optimization in #24, so Mircea removed it in #25; Michael Paquier also questioned the additional API and duplicated call patterns in #26.
- Sami separated the implementation and tests in #27, but Michael found that the tests passed without the fix in #31; Sami corrected the assertions, removed noisy logging settings, and restored query attribution before cleanup in #33.
- Mircea demonstrated that the original PortalDrop override passed the revised tests in #35, and Sami returned to that approach with pointer save/restore and broader coverage in #37 after finding that the helper missed implicit-transaction cleanup.
- Michael questioned changing attribution independently of actual cleanup in #38, while Frédéric and Guillaume objected to misleading user-visible logs in #41 and #42; Michael ultimately favored baseline tests followed by more aggressive portal cleanup, without backpatching, in #46.
- Mircea supplied tests describing existing behavior in #48, and Michael stabilized them against forced parallel execution, replaced timeout-prone log waits, and made query markers distinct in #49.
- Michael committed the tests from #49 as 76bba03312, adding missing-statement assertions and correcting attribution patterns; he reported successful local and CI testing in #50.
- A buildfarm configuration using verbose error logging broke the new regexps, as Michael reported in #51, leading to the unattached one-line fix 02c171f63f that forces default verbosity.
- Mircea subsequently proposed more permissive regexps in #52, but that alternative was not adopted because the configuration override had already resolved the failure, as Sami and Michael confirmed in #53 and #54.
- After Michael requested a refreshed behavior change with protocol documentation and test updates in #56, Sami revived completion-time unnamed-portal cleanup in #57, using the existing portal pointer without an additional lookup.
- Mircea identified stale test labels in #58, Sami corrected and combined the assertions in #59, and Mircea approved that version in #60.
- Michael committed #59 with comment, test-description, and formatting changes as 1fd981f053, crediting Frédéric, Sami, and Mircea and explaining the development-branch-only protocol change in #61.
- The thread ends with Frédéric's thanks in #62: the tests, buildfarm fix, and completed-execution cleanup have landed, while query-string substitution and creation-API optimization were left out, and Michael's caution in #61 leaves the behavior change under observation rather than recording an actual revert.