model-writtenrun 7232 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Jul - Aug 2022 · 9 entries
- Tom Lane opened the thread with #1, proposing bitmapsets directly on Vars and PlaceHolderVars to identify outer joins that could null their values; wrapper-node attempts had proved too difficult, especially for variable-replacement callbacks.
- Answering Jim Finnerty in #3, Tom explained that markings belong to each query level, subquery pullup merges them or preserves them through PlaceHolderVars, and join strength reduction removes obsolete markings.
- Richard Guo questioned qualification placement in #4, and Tom explained in #5 that dependencies on outer-join identifiers could replace much of the old machinery for delaying qualifications.
- Tom rebased and divided the implementation into more reviewable components in #6; Richard then demonstrated changed expression-evaluation placement in #9, leading Tom to favor preserving existing behavior where practical in #12.
- Richard found that PHVs could acquire nulling markers for joins not yet reached and proposed copying them from input targetlists in #16; Tom developed standalone targetlist and lookup prerequisites in #18, then revised the lookup array to exist from the start in #19.
- After Richard endorsed both prerequisites and requested a comment correction in #20, Tom split the lookup and frozen-state work into 6569ca4397 and b3ff6c742f, and landed the targetlist refactoring with light edits as afa0ec30bf.
- Tom independently committed the unchanged appendrel component of #13 as 2f17b57017, then posted the remaining main series with corrected PHV propagation in #22.
- In #23, Tom proposed generating differently marked versions of qualifications for commuting outer joins, so each join order could use a semantically correct expression; Richard probed the associated SpecialJoinInfo constraints in #24 and #26.
- Richard demonstrated that different nulling markers broke LEFT-to-ANTI join recognition in #27 and identified missing regression coverage in #28; Tom added the tests independently as 0043aa6b85.
Nov 2022 - Feb 2023 · 12 entries
- After further development, #29 introduced cloned qualifications, RestrictInfo serial numbers, stronger nulling-state verification, planner cleanup, and an antijoin repair using per-relation attribute sets.
- The antijoin attachment in #30 was superseded by the general multibitmapset implementation posted as #520032 in thread #46923 and committed with comment additions as e9e26b5e71; #34 removed that component and retained the remaining work.
- Richard challenged the qualification variants generated for nested commuting joins in #32 and #35, while Tom identified related pre-existing join-order restrictions and investigated the delay machinery in #33.
- Tom's expanded series in #36 split jointree deconstruction into two passes, removed obsolete delay mechanisms, and introduced join domains to replace the treatment of equivalence classes below outer joins.
- Richard reviewed the new cleanup and questioned storing join domains on equivalence members in #39 and #41; Tom explained in #40 and #42 that sort-order reasoning can cross domain boundaries even when equality deductions cannot.
- Tom explicitly deferred general equivalence-class deductions from outer-join equalities and removal of RestrictInfo.is_pushed_down in #36, and explained the unresolved preservation of nonnullable-side rows in #46.
- After the final rebase in #43, Richard corrected a README query and raised no further objection in #50, and Tom announced that he would proceed in #51.
- The core portion of #43 landed as 2489d76c49, with additional join-alias cases, appendrel safeguards, assertions, tests, and a shortcut in have_unsafe_outer_join_ref beyond the posted version.
- The remaining cleanup attachments of #43 landed together as b448f1c8d8, with restored assertions and light polishing, while its complete join-domain attachment landed unchanged as 3bef56e116.
- The join-domain commit 3bef56e116 also incorporated the postgres_fdw test workaround discussed in thread #47136, already included in #43, while leaving the underlying foreign-join pushdown inconsistency outside this series.
- Justin Pryzby reported a fuzz-generated query that could no longer be planned in #52; Richard traced it to have_unsafe_outer_join_ref and supplied #53, correcting the handling of partly satisfied parameterization.
- Tom committed Richard's repair as f50f029c49, additionally making the check assertion-only and adding regression coverage, and acknowledged the mistaken shortcut in #54.
May - Jul 2023 · 3 entries
- Anton A. Melnikov reported that ChangeVarNodes could no longer replace INDEX_VAR references in extension plans in #56, then proposed changing negative bitmapset membership tests to return false in #58.
- Tom rejected the globally visible bitmapset behavior change in #59 and instead committed a local special-varno guard in adjust_relid_set as fbf80421ea.
- At the thread's close, Anton confirmed the compatibility fix and described a simpler extension implementation in #60; the submitted main series and subsequent fixes had landed, while the broader equivalence-class and is_pushed_down work remained deferred.