Jun 2023

1 commit
Re-allow INDEX_VAR as rt_index in ChangeVarNodes().
8 Jun 2023Tom Lanemaster16beta2REL_19_STABLE16beta2REL_18_STABLE16beta2REL_17_STABLE16beta2REL_16_STABLE16beta2
LLM analysis, 100% surewritten from the discussion, no matching patch0 of 1 reviewer saw the final version

The commit guards adjust_relid_set in src/backend/rewrite/rewriteManip.c with IS_SPECIAL_VARNO, implementing Tom's alternative in #59. It does not apply the bitmapset.c attachment in #58 or Anton's earlier inline guard.

  • Anton A. Melnikovsaw an earlier versionLLM analysis, 87% sureDiagnosed the negative-INDEX_VAR compatibility failure in #56 and #58, before Tom selected a different repair; the confirmation in #60 postdates the commit.

Jan - Feb 2023

4 commits
Fix thinkos in have_unsafe_outer_join_ref; reduce to Assert check.
13 Feb 2023Tom Lanemaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #531 of 2 reviewers saw the final version

Retains #53's satisfied-versus-unsatisfied parameterization fix, but additionally makes have_unsafe_outer_join_ref assertion-only, changes its caller, and adds join regression tests, as explained in #54.

  • Justin Pryzbysaw an earlier versionLLM analysis, 86% sureReported a fuzz-generated planning failure in the landed implementation derived from #43 at #52, prompting the repair, but did not review the attached fix before commitment.
  • Tom Lanesaw the final versioncommittercommitted the patch
Invent "join domains" to replace the below_outer_join hack.
30 Jan 2023Tom Lanemaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1Also in: postgres_fdw planning issue: EquivalenceClass changes confuse it (not this thread)
LLM analysis, 100% surelanded as postedfrom patchset #431 of 1 reviewer saw the final version

All 462 added and removed lines of the join-domain attachment in #43 match the commit after whitespace normalization, including equivclass.c, initsplan.c, pathnodes.h and the postgres_fdw tests. The from_discussion verdict in thread #47136 identifies the earlier test-workaround contribution in #523123, but #43 contains the complete, later matching implementation and establishes this thread as the commit's source.

  • Richard Guosaw the final versionLLM analysis, 99% sureExamined JoinDomain ownership and cross-domain equivalence members in #39 and #41, completed his review in #50, and received explicit review credit in 3bef56e116.
Do assorted mop-up in the planner.
30 Jan 2023Tom Lanemaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #431 of 1 reviewer saw the final version

Combines the five cleanup attachments from #43, removing nullable_relids, delay_upper_joins, and outerjoin_delayed and simplifying dummy clauses. Additional edits chiefly restore join_clause_is_movable_into assertions in relnode.c and update comments and test expectations.

  • Richard Guosaw the final versionLLM analysis, 99% sureReviewed the cleanup patches and demonstrated improved equivalence-based filtering in #39, followed by his final response in #50; only light edits followed.
Make Vars be outer-join-aware.
30 Jan 2023Tom Lanemaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #430 of 1 reviewer saw the final version

Combines the documentation and first six implementation attachments from #43. Comparison against their applied result shows additional join-alias coercion and variable-free-expression handling in var.c, appendrel checks, stronger setrefs assertions, and a simplified have_unsafe_outer_join_ref.

  • Richard Guosaw an earlier versionLLM analysis, 98% sureReviewed qualification placement, PHV propagation, antijoin recognition, and cloned qualifications throughout the series and corrected the README in #50, but moderate implementation edits followed the last posted version.

Nov 2022

1 commit
Invent "multibitmapsets", and use them to speed up antijoin detection.
16 Nov 2022Tom Lanemaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1Also in: List of Bitmapset (was Re: ExecRTCheckPerms() and many prunable partitions) (modified before commit)

Oct 2022

1 commit
Add basic regression tests for semi/antijoin recognition.
31 Oct 2022Tom Lanemaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% surewritten from the discussion, no matching patch0 of 1 reviewer saw the final version

Adds semi/antijoin recognition tests to join.sql and join.out following Richard's missing-coverage report in #28. Tom confirms the independent test commit in #29; no attached patch contains this test addition.

  • Richard Guosaw an earlier versionLLM analysis, 98% sureInvestigated why the antijoin regression escaped testing and requested the missing regression coverage in #28, which Tom implemented as confirmed in #29.

Aug 2022

4 commits
Improve performance of adjust_appendrel_attrs_multilevel.
18 Aug 2022Tom Lanemaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% surelanded as postedfrom patchset #13

The complete appendrel attachment in #13 matches all 177 added and removed lines after whitespace normalization, introducing parent and top_parent RelOptInfo links. Its separate commitment and removal from the main series are confirmed in #22.

Refactor addition of PlaceHolderVars to joinrel targetlists.
17 Aug 2022Tom Lanemaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #191 of 1 reviewer saw the final version

Matches the PHV targetlist attachment from #19, with comment changes requested in #20 and the find_placeholder_info call adjusted for the prerequisite API change. Tom confirms the wording change in #21.

  • Richard Guosaw the final versionLLM analysis, 100% sureProposed propagating PHVs from input targetlists in #16, then endorsed the extracted patch and requested its adopted comment correction in #20.
Use an explicit state flag to control PlaceHolderInfo creation.
17 Aug 2022Tom Lanemaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #191 of 1 reviewer saw the final version

Extracts the placeholdersFrozen flag and create_new_ph API removal from the combined lookup/state attachment in #19, leaving the array implementation to a separate commit. Differences are principally patch ordering and associated call-site placement.

  • Richard Guosaw the final versionLLM analysis, 100% sureExplicitly endorsed the second prerequisite patch and removal of create_new_ph in #20, before it was split into separate commits.
Make PlaceHolderInfo lookup O(1).
17 Aug 2022Tom Lanemaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #191 of 1 reviewer saw the final version

Extracts the dynamically maintained placeholder_array portion of #19, including lookup changes in placeholder.c and var.c and array maintenance in analyzejoins.c. The frozen-state and API changes land separately.

  • Richard Guosaw the final versionLLM analysis, 100% sureReviewed and endorsed the lookup-array patch in #20, also discussing whether the PlaceHolderInfo phid field remained necessary.

Credits across 11 commits

Author
Tom LaneLLM8
Richard GuoLLM1
Reviewer
Tom Lanecommitter1
Committer
Tom Lane11

N LLM means N of the credits come from LLM analysis, not from commit trailers.