model-writtenrun 5427 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Daniele Varrazzo reported unexpected CloseComplete notices from pipelined PQsendQuery calls, contrasting their protocol trace with PQsendQueryParams, in #1.
- Alvaro Herrera initially proposed omitting the Close message in #2, and Kyotaro Horiguchi supplied that fix with a notice-counting regression test in #3; Tom Lane advised waiting until the release freeze ended in #6.
- After finding the historical reason for sending Close, Alvaro posted a merged version but questioned its approach in #7; Tom argued that Close should remain and that libpq was entering IDLE too early in #8.
- Kyotaro replaced Close removal with a distinct PGASYNC_PIPELINE_IDLE state in #11, preserving Close messages while separating between-query pipeline processing from genuine idleness.
- Alvaro adopted the state distinction in #12, corrected rejection of queries submitted while pipeline-idle, expanded tests, and introduced optional Test::Differences output; Kyotaro endorsed the improved trace diagnostics in #13.
- Kyotaro supplied additional PQfn and pipeline-exit tests in #14, traced an intermittent uniqviol failure to the proposed fix in #16, and posted an aborted-pipeline adjustment in #17, while acknowledging uncertainty about its behavior.
- Alvaro demonstrated that missing terminating NULL results and CloseComplete arriving after pipeline exit required further work, then posted a six-part series in #18 that combined the new idle state with PGQUERY_CLOSE queue entries, silent CloseComplete consumption, queue-tail cleanup, and dedicated tests.
- Kyotaro questioned whether synchronization should consume CloseComplete and found that the new trace test was not registered in #19; Alvaro explained that the fix must also support PQsendFlushRequest without requiring PQpipelineSync in #20.
- Alvaro posted the consolidated patch in #21, including corrected queue transitions, registered trace coverage, and a warning test, and reported thousands of successful uniqviol iterations; the independent Test::Differences change and the proposed PQfn tests were absent from this final patch.
- The consolidated patch from #21 landed with development-branch rebase adjustments as 054325c5ee, and Alvaro confirmed deployment to all three branches in #22.
- The thread ended with Kyotaro welcoming the simpler state transitions in #23, after the main fix had landed and while the separate Test::Differences enhancement remained uncommitted.
- The Test::Differences component last posted in #18 later landed separately as 87e4f24d82, with minor tooling annotations and review credit for Kyotaro's earlier assessment in #13.