model-writtenrun 4333 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Richard Guo reported an assertion failure caused by accepting two versions of a cloned outer-join qual in #1, initially suggesting that computability checks use syntactic join sides.
- Richard rejected that suggestion after finding a counterexample and proposed treating a join's quals as a group in #2; his draft #3 evolved into #4, which stored the combined relids directly and added comments and a regression test.
- The issue became a PostgreSQL 16 open item in #5, and Tom Lane confirmed in #7 that it arose from the new outer-join-aware Vars work and did not affect older branches.
- Tom rejected the grouping approach as placing semantic knowledge in the wrong places and proposed a smaller syntactic-side check in #9, but Richard demonstrated that it still failed on a non-clone filter clause in #11.
- Separately, Tom proposed passing the complete RestrictInfo to clause_is_computable_at() in #10; Richard approved it in #12, and Tom landed the behavior-preserving API change as 8a2523ff35, confirming completion in #13.
- Tom's next patch #14 used the new API to check commutating outer joins for clone clauses, but Richard showed in #15 that it could discard every clone of a necessary qual, while the alternative syntactic-side approach could duplicate a qual.
- Richard renewed his argument for grouped quals in #15, but Tom objected in #16 that independent quals can require evaluation at different levels; Tom then identified identical clause_relids across distinct clones and switched to required_relids for clones in #17.
- Tom committed #17 unchanged as b9c755a2f6, including three regression cases derived from Richard's examples, and explained in #18 that the small fix addressed known failures before the beta1 deadline.
- Further investigation in #18 exposed inaccurate required_relids handling: Tom attached a cleanup for constant-true replacement clauses, deferred a broader make_restrictinfo API change until after beta1, and left unresolved how to remove unrelated relids without allowing quals to move into an unsafe join input.
- Alvaro Herrera questioned whether the cleanup remained necessary or uncommitted in #19; Tom said known pre-PGCon bugs were fixed but new reports remained in #20, and Richard closed the original open item in #21 while creating separate items for PHV removal and nestloop-parameter nulling bitmap problems.