model-writtenrun 4757 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Robins Tharakan reported an assertion failure in deconstruct_distribute(), supplying a backtrace and a SQLSmith query involving a LATERAL subquery and outer joins #1.
- Richard Guo reduced the reproducer and diagnosed postponed clauses from a left subtree being checked against an unrelated right subtree during depth-first traversal #2; his draft stored child links and postponed clauses in each JoinTreeItem to preserve the proper ancestry #3.
- Tom Lane agreed with the ordering diagnosis and proposed eliminating the PostponedQual mechanism, which he had previously left untouched while refactoring deconstruct_jointree() #4.
- Tom Lane supplied a replacement draft using parent links to place each postponed clause directly at the nearest ancestor containing its referenced relations, describing it as cleaner and potentially faster; this final thread message still lacked test cases #5.
- Tom Lane subsequently committed that replacement as 5840c20272, adding regression coverage and adjusting a comment while retaining the implementation from #5, completing the reported fix.