model-writtenrun 284 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Richard Guo reported a fuzzing-discovered partition-pruning error in #1: constant folding removed a SubPlan's PARAM_EXEC reference, allowing startup pruning to evaluate it before a parent PlanState existed.
- Richard Guo's patch in #1 explicitly excludes SubPlan-containing expressions from startup-time pruning while preserving their eligibility for per-scan pruning, and adds regression coverage.
- Amit Langote endorsed the proposed fix in #2, finding no simpler or better approach.
- Richard Guo committed #1 unchanged as eacee6b618, with a commit-message explanation that the regression began when initial pruning moved out of ExecInitNode(), warranting backpatching through v18.
- Richard Guo confirmed the push and backpatch to v18 in #3, closing the thread with the fix landed and no outstanding revisions.