Sep 2019

1 commit
Prevent bogus pullup of constant-valued functions returning composite.
24 Sep 2019Tom Lanemaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1
LLM analysis, 100% surewritten from the discussion, no matching patch

Raúl Marín Rodríguez reported composite-result failures in #28, and Tom Lane proposed rejecting non-scalar results in #29, without an attached patch. The commit implements that guard using funccolcount and get_expr_result_type() in prepjointree.c and adds one-column and multi-column composite regression tests.

Aug 2019

1 commit
Allow functions-in-FROM to be pulled up if they reduce to constants.
1 Aug 2019Tom Lanemaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1
LLM analysis, 100% suremodified before commitsignificant changesfrom patchset #261 of 6 reviewers saw the final version

The commit incorporates #26, but moves folding into preprocess_function_rtes(), shares variable replacement through perform_pullup_replace_vars(), and adds appendrel, grouping-set, and lateral handling, as explained in #27. Its message credits Alexander Kuzmenkov and Aleksandr Parfenov as authors; Kuzmenkov supplied the rewritten implementation in #20, subsequently revised and forwarded by Anastasia Lubennikova.

  • Andrew Gierthsaw an earlier versionLLM analysis, 100% sureIdentified missing attribute checks, unsafe assumptions about volatile-function inlining, and repeated evaluation in #2 and #4, before substantial rewrites.
  • Heikki Linnakangassaw an earlier versionLLM analysis, 100% sureFlagged repeated simplification per reference and proposed earlier folding and subquery-style pullup in #6, which drove the subsequent redesign.
  • Anthony Bykovsaw an earlier versionLLM analysis, 99% sureAttempted to build #8 and reported its undeclared-variable failure in #9, which the next revision fixed.
  • Kyotaro Horiguchisaw an earlier versionLLM analysis, 100% sureTested #10 and supplied a join query producing a missing-relation error in #11, before the RTE_RESULT rewrite.
  • Antonin Houskasaw an earlier versionLLM analysis, 100% sureAnalyzed join-alias and PlaceHolderVar correctness in #12 and recommended simpler catalog access and refactoring in #13; the commit explicitly credits his review.
  • Tom Lanesaw the final versioncommittercommitted the patch

Credits across 2 commits

Author
Alexander KuzmenkovLLM1
Reviewer
Tom Lanecommitter1
Committer
Tom Lane2

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