Oct 2020

2 commits
Relax some asserts in merge join costing code
19 Oct 2020David RowleyREL_13_STABLE13.1REL_12_STABLE12.5REL_11_STABLE11.10REL_10_STABLE10.15REL9_6_STABLE9.6.20REL9_5_STABLE9.5.24
LLM analysis, 99% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

The commit changes four assertions in src/backend/optimizer/path/costsize.c to tolerate NaN, implementing the inline alternative in #19 with Tom Lane's isnan suggestion in #20. The attachment #17 instead adds DBL_MAX guards and contains none of these assertion changes.

  • Tom Lanesaw the final versionLLM analysis, 98% sureReviewing the inline assertion change in #19, Tom recommended checking for NaN in #20, which the committed assertions implement.
Prevent overly large and NaN row estimates in relations
18 Oct 2020David Rowleymaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1
LLM analysis, 100% surelanded as postedfrom patchset #121 of 1 reviewer saw the final version

The diff exactly matches #12 after excluding abbreviated blob-index lines: MAXIMUM_ROWCOUNT is 1e100, clamp_row_est() caps excessive and NaN estimates, and join-costing functions retain zero checks while removing isnan checks.

  • Tom Lanesaw the final versiontrailerTom requested preserving zero-row handling and using a 1e100 cap in #11, then explicitly reviewed the removal of isnan checks and accepted the final patch in #14.

Credits across 2 commits

Author
David RowleyLLM1
Reviewer
Tom Lane1
Reported by
Onder Kalaci2
Committer
David Rowley2

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