model-writtenrun 9398 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Philip Dubé reported that repeated join aliases in different subqueries produced invalid view definitions: column references used a renamed alias while the corresponding join retained its original name #1.
- Philip Dubé supplied a patch making ruleutils.c retrieve the assigned join alias through get_rtable_name(), together with a nested-subquery regression test #1.
- Tom Lane explained that the submitted test passed even without the fix and was placed among unrelated tests, so he adapted the original join example into a regression test that exercised the bug #2.
- 3d99a81397 landed the fix from #1 with an explanatory comment and replacement test, identifying incorrect view dump/reload behavior and calling for backpatching to all supported branches.
- Tom Lane confirmed that he had pushed the corrected patch, leaving no outstanding work in the thread #2.