model-writtenrun 2101 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andrei Lepikhov proposed caching parameterized SEMI and ANTI join inner results using Memoize's singlerow mode, with costing and EXPLAIN changes, in #1.
- Andrei discovered that residual join conditions could require multiple inner tuples and trigger a cache-entry-already-complete error in #2; David Rowley supplied an experiment requiring parameterized conditions to cover the join in #3, which Andrei incorporated with comments and regression tests in #4.
- Alena Rybakina supplied comment improvements and an assertion in #5, then resent Andrei's full patch for CI in #6; after David explained that unique SEMI or ANTI joins were legitimate in #7 and #9, she withdrew the assertion and retained only comment edits in #10.
- Andrei raised the possibility of landing the feature for PostgreSQL 18 in #11, but Richard Guo questioned whether counting parameterized clauses actually proved coverage of the current join in #12 and demonstrated that those clauses could include conditions from other outer relations in #16.
- Richard produced a failing nested SEMI-join example in #20, showing that upper-level join clauses could invalidate the singlerow assumption; he proposed proving inner uniqueness for ANTI joins and explained that provably unique SEMI joins already become ordinary inner joins.
- Andrei deferred the work to the July commitfest in #21, David endorsed checking ANTI-join uniqueness in #22, and Richard supplied the replacement implementation in #23, leaving general SEMI and nonunique ANTI memoization out.
- Andres Freund reported platform-dependent Sort memory output in the new regression test in #24, and Richard normalized that output in #25.
- Richard rebased the patch without functional changes and announced plans to commit in #26; wenhui qiu and Andrei reviewed that version in #27 and #28, leaving only minor readability suggestions at the thread's end.
- The following day, Richard committed #26 unchanged as 0da29e4cb1, completing the narrowed unique-inner ANTI-join implementation while the original broader optimization remained unimplemented.