Feb 2023

3 commits
Prevent join removal from removing the query's result relation.
20 Feb 2023Tom Lanemaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1REL_15_STABLE15.3
LLM analysis, 100% suremodified before commitlight changesfrom patchset #80 of 1 reviewer saw the final version

The commit preserves the exact join_is_removable() guard and comment from #8. It adds the requested regression coverage in src/test/regress/sql/merge.sql and its expected output.

  • Alexander Lakhinsaw an earlier versionLLM analysis, 88% sureHis partitioned-table MERGE reproducer exposed a failure after the cleanup from #1 and initiated this fix, but he did not review the subsequent result-relation guard #4.
Remove gratuitous assumptions about what make_modifytable can see.
20 Feb 2023Tom 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

Neither attachment changes src/backend/optimizer/plan/createplan.c. The commit implements Tom Lane's discussion proposal to remove fragile make_modifytable() assumptions and check MERGE foreign-table rejection independently of how fdwroutine was obtained #5 #6.

  • Alexander Lakhinsaw an earlier versionLLM analysis, 90% sureHe reported the make_modifytable() assertion exposed by the cleanup from #1 and identified the changed execution branch, prompting the subsequent restructuring #4.
When removing a relation from the query, drop its RelOptInfo.
13 Feb 2023Tom Lanemaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #11 of 1 reviewer saw the final version

The executable changes match #1; the commit additionally removes obsolete commentary in src/include/nodes/pathnodes.h and updates comments in src/backend/optimizer/plan/initsplan.c. Tom Lane explicitly describes those comment cleanups when announcing the push #3.

  • Richard Guosaw the final versionLLM analysis, 100% sureHe said the patch looked good and requested removal of obsolete RELOPT_DEADREL commentary, which was incorporated with only further comment changes #2 #3.

Credits across 3 commits

Author
Tom LaneLLM2
Committer
Tom Lane3

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