model-writtenrun 538 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Anthonin Bonnefoy proposed checks that make getCopyDataMessage() return -2 and pqFunctionCall3() return an error PGresult when asynchronous message processing encounters a fatal error, preventing continued processing of a dead connection #1.
- Ewan Young confirmed by code inspection that the patch covered both affected loops and that pqParseInput3() already handled the error; Fujii Masao supported the fix but requested that pqFunctionCall3() check for failure before calling pqParseDone() on an already-flushed buffer #2 #3.
- Anthonin adopted Fujii's ordering change, placing both fatal-error checks before pqParseDone() while preserving the original approach #4.
- Fujii supplied a version with unchanged code and an expanded commit message explaining the regression and proposing backpatching through v18; Ewan rechecked that final version and confirmed the affected behavior on v18 #5 #6.
- Fujii committed the final patch unchanged as 676bf48e1e, with the supplied metadata recording two backports, and announced that it had been pushed, leaving no outstanding work in the thread #5 #7.