Jun 2025

2 commits
Fix some new issues with planning of PlaceHolderVars.
29 Jun 2025Tom Lanemaster18beta2REL_19_STABLE18beta2REL_18_STABLE18beta2
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #210 of 2 reviewers saw the final version

The commit matches #21 except for one code-and-comment region in src/backend/optimizer/plan/createplan.c: it applies replace_nestloop_params() directly to phv->phexpr instead of the whole PHV and removes the explicit nlp->paramval reassignment.

  • Richard Guosaw an earlier versionLLM analysis, 99% sureRichard proposed the required-outer correction in #6, verified the placement fix against a GEQO failure in #12, and analyzed SubLink and nullingrel failures in #16 and #17, before further logic changes.
  • Alexander Lakhinsaw an earlier versionLLM analysis, 100% sureAlexander reported a nullingrel failure remaining with #13 in #14 and tested both patches in #18, finding the higher-nestloop reference failure reported in #20 and fixed in the next revision.
Remove planner's have_dangerous_phv() join-order restriction.
20 Jun 2025Tom Lanemaster18beta2REL_19_STABLE18beta2REL_18_STABLE18beta2
LLM analysis, 100% suremodified before commitlight changesfrom patchset #51 of 1 reviewer saw the final version

The createplan.c, paramassign.c, and paramassign.h diffs are identical to #5. The commit finishes the promised cleanup by deleting the disabled have_dangerous_phv() function, callers, and declaration, and adds EXPLAIN coverage for an existing regression query.

  • Richard Guosaw the final versionLLM analysis, 100% sureRichard reviewed parameter placement and requested explicit target-list test coverage in #6, continued the placement analysis in #8, and his test request was addressed before commitment.

Credits across 2 commits

Author
Tom Lane2
Reported by
Alexander Lakhin2
Committer
Tom Lane2