model-writtenrun 6285 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andrei Lepikhov reported an instrumentation error and crash involving asynchronous foreign scans with a hashed subplan, attaching a preliminary fix that deferred tuple production for another Append's request #1.
- After reproduction difficulties, Etsuro Fujita confirmed the failure and explained that his initial setup had placed the partitions on the same foreign server #8.
- Fujita rejected the initial request-state manipulation because it simultaneously signaled end-of-data and requested another tuple, and considered disabling asynchronous execution for scans accessing subplans or initplans #9.
- Lepikhov argued that disabling execution should be temporary and proposed separating tuple reception from evaluation #10; his additional inline suggestion to fill missing result slots in ExecAsyncAppendResponse() was superseded by Fujita's implementation #11 #12.
- Fujita's replacement split fetching from request completion, deferred tuple evaluation until postgresForeignAsyncConfigureWait(), allowed the executor to return without socket wait events, and added an initplan regression test #12.
- Lepikhov endorsed the replacement #13, and Fujita posted the final version with expanded comments and minor code and test rearrangements #14; a separate proposal to postpone selection of asynchronous subplans was confirmed unrelated to this fix #15.
- Lepikhov reported that the final patch completed the TPC-H benchmark that originally exposed the failure #17; Fujita identified asynchronous Merge Append support as a future improvement #18.
- Fujita committed the final patch unchanged as 1ec7fca859, with a PostgreSQL 14 backport, and announced completion #19; the credited co-authors were the only participants, so no independent reviewers are suggested.
- The thread ended with Fujita reporting a buildfarm assertion failure involving fsstate->conn_state->pendingAreq and promising to investigate; no follow-up fix appears in the supplied thread #20.