model-writtenrun 3712 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Richard Guo proposed fixing two assertions in calc_non_nestloop_required_outer() to use top-level parent relation IDs, matching how incoming paths are parameterized #1.
- Aleksander Alekseev tested both assertion branches successfully and requested an explanation; Richard added the comment, and shihao zhong subsequently reviewed the revision and found it ready for a committer #2 #3 #4.
- Robert Haas proposed explaining that reparameterize_path_by_child() had not yet run, while Tom Lane questioned the invariant and considered checking both child and parent relation IDs; Robert argued that the existing checks could miss prohibited cross-side parameterization #5 #6 #8 #9.
- After rereading the code, Tom accepted checking parent IDs and posted a revision using local variables and expanded comments to resemble the nestloop code path, incorporating Robert's wording; an explicit assertion-build conditional was discussed but omitted #10.
- Robert suggested additionally asserting that parameterization sets contain only top-level relations; Tom investigated this, corrected the proposed comparison set to all_query_rels, and declined the extra interface changes or restructuring because they risked duplication and offered uncertain value #11 #12 #13.
- The thread ended with Tom intending to apply his final revision unchanged, and that exact patch subsequently landed as add673b897, crediting Richard's authorship; the stronger assertions were left out and back-patching was deemed unnecessary for an overly weak assertion check #13 #10.