summaryrefslogtreecommitdiff
path: root/src/backend/executor
diff options
context:
space:
mode:
authorTomas Vondra <tomas.vondra@postgresql.org>2019-11-16 01:17:15 +0100
committerTomas Vondra <tomas.vondra@postgresql.org>2019-11-16 01:42:20 +0100
commit0b0f281cc0fe383162b170889e79502e21e6b35a (patch)
tree7914c8137336a94c210fdc0528f1cdfd3ae2eaf1 /src/backend/executor
parent4be69e2ea14d4f00c77a1185e68b7f9235aeb95f (diff)
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 anything that is not a regular attribute. Backpatch to PostgreSQL 10, where the extended stats were introduced. Bug: #16111 Reported-by: Tuomas Leikola Author: Tomas Vondra Backpatch-through: 10 Discussion: https://postgr.es/m/16111-687799584c3a7e73@postgresql.org
Diffstat (limited to 'src/backend/executor')
0 files changed, 0 insertions, 0 deletions