aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistbuild.c
diff options
context:
space:
mode:
authorTomas Vondra <tomas.vondra@postgresql.org>2019-03-27 20:07:41 +0100
committerTomas Vondra <tomas.vondra@postgresql.org>2019-03-27 20:07:41 +0100
commita63b29a1dea0ce4e95f682f9d0b36994f2fcf43e (patch)
tree2ae750da45084d063f496094ec4f2942d6a211a2 /src/backend/access/gist/gistbuild.c
parent7300a699502fe5432b05fbc75baca534b080bebb (diff)
downloadpostgresql-a63b29a1dea0ce4e95f682f9d0b36994f2fcf43e.tar.gz
postgresql-a63b29a1dea0ce4e95f682f9d0b36994f2fcf43e.zip
Minor improvements for the multivariate MCV lists
The MCV build should always call get_mincount_for_mcv_list(), as the there is no other logic to decide whether the MCV list represents all the data. So just remove the (ngroups > nitems) condition. Also, when building MCV lists, the number of items was limited by the statistics target (i.e. up to 10000). But when deserializing the MCV list, a different value (8192) was used to check the input, causing an error. Simply ensure that the same value is used in both places. This should have been included in 7300a69950, but I forgot to include it in that commit.
Diffstat (limited to 'src/backend/access/gist/gistbuild.c')
0 files changed, 0 insertions, 0 deletions