pgsql: Skip system attributes when applying mvdistinct stats

2019-11-15 Thread Tomas Vondra
Skip system attributes when applying mvdistinct stats When estimating number of distinct groups, we failed to ignore system attributes when matching the group expressions to mvdistinct stats, causing failures like ERROR: negative bitmapset member not allowed Fix that by simply skipping anythin

pgsql: Skip system attributes when applying mvdistinct stats

2019-11-15 Thread Tomas Vondra
Skip system attributes when applying mvdistinct stats When estimating number of distinct groups, we failed to ignore system attributes when matching the group expressions to mvdistinct stats, causing failures like ERROR: negative bitmapset member not allowed Fix that by simply skipping anythin

pgsql: Skip system attributes when applying mvdistinct stats

2019-11-15 Thread Tomas Vondra
Skip system attributes when applying mvdistinct stats When estimating number of distinct groups, we failed to ignore system attributes when matching the group expressions to mvdistinct stats, causing failures like ERROR: negative bitmapset member not allowed Fix that by simply skipping anythin

pgsql: Skip system attributes when applying mvdistinct stats

2019-11-15 Thread Tomas Vondra
Skip system attributes when applying mvdistinct stats When estimating number of distinct groups, we failed to ignore system attributes when matching the group expressions to mvdistinct stats, causing failures like ERROR: negative bitmapset member not allowed Fix that by simply skipping anythin