model-writtenrun 4901 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Richard Guo reported that MemoizePath generation fails for partitionwise joins because parameter clauses still refer to the outer relation's topmost parent when checked against the child relation #1.
- Richard Guo supplied a patch using outerrel->top_parent for that check, adjusting MemoizePath cache-key expressions during child reparameterization, and adding a partitionwise self-join regression test #1.
- Tom Lane committed the patch as d69d01ba9d, preserving its optimizer logic while clarifying field comments and adjusting the regression test's placement and setting cleanup.
- Tom Lane confirmed the fix was pushed and backpatched, explaining that older branches required a different lookup because they lacked top_parent; he also noted that Richard's test case made the previously suspected reparameterization omission actionable #2.
- Richard Guo thanked Tom Lane for the adjustments and backpatches, closing the thread with the fix landed and no outstanding work identified #3.