model-writtenrun 4275 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Zuming Jiang reported a fuzzer-generated outer-join query that failed with a wrong-varnullingrels error on PostgreSQL 16beta1 in #1.
- Tom Lane reduced the failure to a query without subplans and established that the cross-check caught an invalid join order in #2; he then traced the problem to an intervening left join blocking WHERE-clause hoisting and considered extending preprocessing or moving the handling into jointree deconstruction in #3.
- Richard Guo identified a small modification to an existing regression query that reproduced the failure in #4, and Tom incorporated that case into #5, choosing to pass the ancestor qualification pointer through left joins in the existing preprocessing code.
- The draft changed an existing query's plan, initially raising concerns about lost join-order opportunities in #5, but Tom's investigation in #6 attributed the differing plan choices to selectivity estimates and found no additional fix necessary.
- Tom committed #5 as 3af87736bf, retaining its logic and regression coverage while expanding comments and moving the new test beside its related case.
- After the commit, Richard independently confirmed in #7 that changed row-count estimates explained the existing query's plan change, including a debugger experiment restoring the previous plan; the thread ended with the fix landed and no further patch proposed.