model-writtenrun 2261 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Dipesh Dhameliya demonstrated that PL/pgSQL return-expression queries planned parallel workers but launched none because exec_eval_expr imposed a two-tuple limit, and submitted a patch removing that limit and the now-unused maxtuples parameter in #1.
- Dilip Kumar objected that removing the limit could make queries process unnecessary rows in #2; Dipesh defended parallelism for expensive valid expressions in #3, while Dilip proposed enabling parallelism specifically for initplans in #4.
- Tom Lane explained that expressions returning multiple rows already fail, so preserving early failure should not penalize valid queries, and recommended passing 0 while retaining the maxtuples parameter for possible future use in #5.
- Dilip withdrew his performance objection after recognizing that the existing two-tuple limit already requires complete execution for successful single-row results, while distinguishing the broader initplan parallelism issue in #6.
- Tom explained that independent initplan parallelism would require substantial executor changes and could not provide a backpatchable regression fix in #7, and Dilip agreed in #8.
- Tom committed the lightly modified patch from #1 as 87b05fdc73, retaining the parameter and adding an explanatory comment, with backpatches through PostgreSQL 13; his final announcement in #9 left broader subplan parallelism open for separate investigation.