May 2025

2 commits
Track the number of presorted outer pathkeys in MergePath
8 May 2025Richard Guomaster18beta2REL_19_STABLE18beta2REL_18_STABLE18beta2
LLM analysis, 99% suremodified before commitmoderate changesfrom patchset #110 of 1 reviewer saw the final version

The commit matches the second patch in #11 except for initializing outer_presorted_keys to zero in try_mergejoin_path() and try_partial_mergejoin_path() in src/backend/optimizer/path/joinpath.c. These local logic changes prevent passing an uninitialized value when outersortkeys is NIL.

  • Tender Wangsaw an earlier versiontrailerTender Wang reported that the second patch looked good after a quick review in #12, before the two initialization fixes were added.
Suppress unnecessary explicit sorting for EPQ mergejoin path
8 May 2025Richard Guomaster18beta2REL_19_STABLE18beta2REL_18_STABLE18beta2
LLM analysis, 100% surelanded as postedfrom patchset #111 of 1 reviewer saw the final version

The diff is identical to the first patch in #11, including both sort-key checks in src/backend/foreign/foreign.c and the postgres_fdw regression test and expected output.

  • Tender Wangsaw the final versiontrailerTender Wang explicitly said the bug-fix patch looked good in #12, and its diff landed unchanged.

Credits across 2 commits

Author
Richard Guo2
Reviewer
Tender Wang2
Reported by
David Rowley1
Никита Калинин1
Committer
Richard Guo2