• Tomas Vondra's avatar
    Minor improvements for the multivariate MCV lists · a63b29a1
    Tomas Vondra authored
    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 7300a699, but I forgot to include it
    in that commit.
    a63b29a1
mcv.c 48.4 KB