Jul 2019

2 commits
Fix pg_mcv_list_items() to produce text[]
4 Jul 2019Tomas Vondramaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1+1 more
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #131 of 1 reviewer saw the final version

The commit preserves the ArrayBuildState implementation, pg_proc.dat signature change, and regression output from #13. It adds the catalog-version bump and replaces output-function metadata arrays with lookups inside the non-NULL branch, as Dean requested in #14 and Tomas accepted in #15.

  • Dean Rasheedsaw the final versiontrailerDean supported proper text[] output in #11, then reviewed #13 and specified the output-function lookup cleanup incorporated into the commit in #14.
Speed-up build of MCV lists with many distinct values
4 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 patchsetmoderate changesfrom patchset #5

Only the frequency-precomputation patch from #5 landed; the relative-error selection patch is absent. In src/backend/statistics/mcv.c, the committed version additionally defers precomputation until nitems > 0, points into existing groups instead of allocating individual values, and adjusts deduplication and memory cleanup.

Credits across 2 commits

Author
Tomas Vondra1 LLM2
Reviewer
Dean Rasheed1
Committer
Tomas Vondra2

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