model-writtenrun 2742 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Yugo Nagata reported that executing an already completed portal with an unlimited row count triggered a PortalRun assertion, first proposing an execute_is_fetch adjustment in #1 and then an alternative that skipped PortalRun for completed portals in #2.
- Tom Lane questioned the undocumented run_once contract in #3 and replaced the portal-level approaches with an executor-side design in #4, using execution history and the requested tuple count to decide whether parallelism was safe.
- Tom supplied a stable-branch adaptation in #5 that preserved API arguments and structure layout while making the obsolete flags unused.
- Yugo confirmed that both versions fixed the failure and suggested removing ExecutePlan's redundant parallelism argument in #6; after explaining his initial API choices and rejecting a riskier relocation of already_executed in #7, Tom accepted Yugo's suggestion in #8.
- The fix landed as 4d20bad5e9, matching the compatibility patch in #5 with the additional parallelism-argument refactor and crediting Yugo's testing and review.
- After the fix landed, Robert Haas questioned whether a completed parallel plan could subsequently execute in non-parallel mode in #9 and explained the worker-lifetime restrictions in #11, prompting Tom to investigate whether an additional execution guard was necessary.
- Tom established in #12 that pquery.c already selects NoMovement after reaching end-of-data, preventing another ExecutePlan call while retaining destination startup and shutdown, so the follow-up required explanatory comments rather than another behavioral fix.
- Tom posted an inline comment patch in #14, Robert requested milder wording in #15, and Tom accepted that adjustment in #16; the resulting documentation landed as 9828905303.
- The remaining discussion concerned broader portal cleanup design in #15 and #16, ending with Robert's acknowledgment in #17; both concrete fixes had landed, with no further patch pending.