Jan 2024

4 commits
Attempt to fix newly added Memoize regression test
26 Jan 2024David Rowleymaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

After Tom Lane reported platform-specific regression failures in #20, David Rowley proposed changing unique1 < 5 to unique1 < 4 in #21. The commit implements that unattached test adjustment in memoize.sql and memoize.out, avoiding fractional row-count rounding.

  • Tom Lanesaw the final versionLLM analysis, 99% sureTom reported the failing test in #20 and endorsed trying the proposed adjustment in #22, both before the commit.
Compare varnullingrels too in assign_param_for_var().
26 Jan 2024Tom Lanemaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1REL_16_STABLE16.2
LLM analysis, 100% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

Tom Lane identified the missing varnullingrels comparison and supplied an inline diagnostic assertion in #11; the commit instead adds bms_equal() to assign_param_for_var()'s reuse condition. Neither attached patch changes paramassign.c; this is the development-branch canonical change.

  • Richard Guosaw the final versionLLM analysis, 91% sureRichard analyzed upper-level Var identity and explained why varnullingrels should agree in #17, reviewing the invariant behind the defensive comparison before it landed.
De-dupicate Memoize cache keys
26 Jan 2024David Rowleymaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #161 of 1 reviewer saw the final version

The commit preserves both list_member() guards in paraminfo_get_equal_hashops() and the single-key test expectation from #16. Only comment wording and wrapping changed, including clarifying 'a previous item in ppi_clauses'.

  • Richard Guosaw the final versiontrailerRichard checked whether duplicate expressions could have different equality operators, established their type-cache origin, and endorsed the patch in #18.
Improve NestLoopParam generation for lateral subqueries
26 Jan 2024David Rowleymaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #12 of 2 reviewers saw the final version

The commit retains the exact function-call reordering from #1 in create_subqueryscan_plan(), adopts Tom Lane's explanatory comment from #12, and limits the regression subquery to unique1 < 5. David Rowley explicitly described these comment and test changes when announcing the commit in #14.

  • Tom Lanesaw the final versiontrailerTom validated the ordering change and supplied the comment used in the commit in #12, with only light test changes following.
  • David Rowleysaw the final versiontrailerDavid investigated the original call ordering in #10, then revised the comment and reduced test cost before committing as reported in #14.

Credits across 4 commits

Author
David Rowley1
Richard Guo1
Reviewer
David Rowley1
Richard Guo1
Tom Lane1
Reported by
Tom Lane1
Committer
David Rowley3
Tom Lane1