model-writtenrun 5239 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andre Lin reported an invalid-attribute error on PostgreSQL 12.12 and traced it to partition update plans sharing a parameter whose SubPlanState arguments differed with join order #1.
- Tom Lane confirmed that cloned MULTIEXPR SubPlans require distinct output parameters, unlike ordinary initplans with empty argument lists, and attached a v13 patch assigning fresh parameter IDs during inheritance planning #2.
- The last thread message proposed applying the fix to v10–v13 and adding only an explanatory comment to newer branches, where removal of inheritance_planner() had eliminated the failure #2.
- The full patch subsequently landed as e1ea6f3745 with branch adaptations, while d1ce745db2 carried its adapted executor comment into HEAD.
- An off-list follow-up report from Andre Lin exposed Params hidden beneath coercions and assignment indirection; 56dc442447 corrected that oversight for v10–v13 and added array-element regression coverage, completing the fixes represented by the supplied commits.