Re: BUG #16111: Unexpected query compilation error “negative bitmapset member not allowed”
Justin Pryzby <pryzby@telsasoft.com>
From: Justin Pryzby <pryzby@telsasoft.com>
To: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: tuomas.leikola@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2019-12-05T00:38:23Z
Lists: pgsql-bugs
On Sat, Nov 16, 2019 at 02:36:42AM +0100, Tomas Vondra wrote: > >Yeah, this is a bug in estimate_multivariate_ndistinct, which fails to > >ignore system attributes :-( > > > >The attached patch fixes it, but unfortunatly we've missed this round of > >minor releases :-( I'll get it pushed in a couple of days. > > > >Thanks for the report and the reproducer, very helpful! > > I've pushed the fix, after a minor improvement (it wasn't quite right, > because the bitmap was updated again a bit later). Backpatched to 10+. I thought you'd be interested to know I just ran into this myself, so I would've reported it now, if it hadn't already been fixed - thanks. -- Note, that's actually a table named after a view.. ts=# explain SELECT tableoid::regclass FROM daily_enodeb_baseband_view GROUP BY 1; ERROR: negative bitmapset member not allowed -- Justin Pryzby System Administrator Telsasoft +1-952-707-8581
Commits
-
Skip system attributes when applying mvdistinct stats
- 25a9ff6cadbb 11.7 landed
- 0b0f281cc0fe 10.12 landed
- 28555a53cb75 12.2 landed
- d482f7f867b5 13.0 landed