Jul 2019

6 commits
Use column collation for extended statistics
20 Jul 2019Tomas Vondramaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1+1 more
LLM analysis, 100% surelanded as postedfrom patchset #171 of 1 reviewer saw the final version

The commit has the same stable patch ID as the collation patch in #17, including changes to statscmds.c, dependencies.c, mcv.c, and mvdistinct.c.

  • Tom Lanesaw the final versiontrailerTom explained why varcollid remains valid and requested comments in #16, then approved the revised patches in #18.
Rework examine_opclause_expression to use varonleft
20 Jul 2019Tomas Vondramaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1+1 more
LLM analysis, 100% surelanded as postedfrom patchset #171 of 1 reviewer saw the final version

The commit has the same stable patch ID as the varonleft patch in #17, preserving operand order for cross-type equality and removing the estimator-based dispatch in mcv_get_match_bitmap.

  • Tom Lanesaw the final versiontrailerTom identified the cross-type argument-order bug and misleading isgt name in #16, then approved the resulting patch in #18.
Remove unnecessary TYPECACHE_GT_OPR lookup
18 Jul 2019Tomas Vondramaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1+1 more
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #14

The commit extracts exactly the two unused TYPECACHE_GT_OPR/FmgrInfo removal hunks from the collation patch in #14, leaving its collation changes for later.

Fix handling of NULLs in MCV items and constants
18 Jul 2019Tomas Vondramaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1+1 more
LLM analysis, 100% suremodified before commitlight changesfrom patchset #14

The NULL-handling logic matches #14, with a small comment edit and added stats_ext.sql regression coverage for OR clauses over nullable text columns. Tomas describes the added regression test in #15.

Simplify bitmap updates in multivariate MCV code
18 Jul 2019Tomas Vondramaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1+1 more
LLM analysis, 99% suremodified before commitmoderate changesfrom patchset #14

The commit implements the bitmap simplification from #14, but replaces its two static helper functions with RESULT_MERGE and RESULT_IS_FINAL macros in mcv.c. It also retains DEFAULT_COLLATION_OID because the collation patch was deferred.

Fix handling of opclauses in extended statistics
18 Jul 2019Tomas Vondramaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1+1 more
LLM analysis, 100% suremodified before commitlight changesfrom patchset #140 of 1 reviewer saw the final version

The commit carries the complete opclause-extraction patch from #14, including RelabelType stripping and the internal-header declaration. Differences are explanatory comments in extended_stats.c and rebasing around the separately committed unused lookup removal.

  • Tom Lanesaw an earlier versionLLM analysis, 99% sureIn #12, Tom found that the submitted helper failed to validate the node beneath RelabelType and requested extraction changes and a less generic name, which #14 implemented.

Credits across 6 commits

Author
Tomas VondraLLM6
Reviewer
Tom Lane2
Committer
Tomas Vondra6

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