Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1icfAD-00068A-6x for pgsql-bugs@arkaria.postgresql.org; Thu, 05 Dec 2019 00:38:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1icfAB-0002MK-9F for pgsql-bugs@arkaria.postgresql.org; Thu, 05 Dec 2019 00:38:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1icfAA-0002MD-SU for pgsql-bugs@lists.postgresql.org; Thu, 05 Dec 2019 00:38:35 +0000 Received: from mail-yw1-xc34.google.com ([2607:f8b0:4864:20::c34]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1icfA3-0005DM-MH for pgsql-bugs@lists.postgresql.org; Thu, 05 Dec 2019 00:38:34 +0000 Received: by mail-yw1-xc34.google.com with SMTP id h126so532723ywc.6 for ; Wed, 04 Dec 2019 16:38:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=6tUinSEdGu1di0kokJe/Lt2ddxGPRMulaCrQIMO9trQ=; b=UsUBk9izNcTNXvBR/QZOLH4fyRJycz0aSXCPGHdO2TboWxnz+jXuKd/5pk72cWRmgQ d61OxbXxwH8WwPkOXdbHvUx3vyFCKuoUplGNfyKlZrjxDCZYcg0UM0luvlSZGiE+XHok b+F2UBbFX1OIdrQkKpjAHZnZakZKPgio2PlrHqJPAZGIRq+Ibu1uqJBzKlwxysyDkVSo I9U62A4PHbJdrbvCGuA7GWFFHhN9o3WgRkIbGwHdXbJ+1OvRS8X6I8PTQ0FdG43FYAhz VYF1jEEO6YAFD7nleLI695m52JXCakmneeiSrmkd3LyhTDyxrVqVuwA2pHork11KGMF0 qmWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=6tUinSEdGu1di0kokJe/Lt2ddxGPRMulaCrQIMO9trQ=; b=DnWJHAiFsVeF7O5BD0mMPQ6gSulGtVfE0U1fsP+wAG2JR0NMaIhZEHL9Vt/mXMhdxp fvV5Rf4FbF/zrTzL23hNAluhrdk5+3whJ2nfMu8pHtTY7d0N183a5NPqg2bVI+wgj27k bQ/CwLacPUzMm6fRh/6FHOr/POHwhJaPkO8IdIMG42Ak6mjUemBhp4WlUfxdSMgw2ORP vwJuiQnQBIw6hl0dgMO0nwY0v8SidktQ7IsZhsI59L/1Wabx0ssW7X9O6yofQkIQD5vn lUs7rEbp4F+MbDIkEwlIxIG2BC8EvLkKeYcxQZZ8YPz9aBYdisik4F86Un8rMQTs7PHn ntEA== X-Gm-Message-State: APjAAAW2MgYONLt2OhDnG5/vECS9nzj/+1y3iIiIIp9JBWFJFJcGi+5X EURnXiUYzzUUdwQ3IL44Z9zbsw== X-Google-Smtp-Source: APXvYqx2w+MUxrCKkzjkkMqbKxPgcrOsYTtRAd7fHWEXo8jkp8cDXVhDg1cmBf4rK/WJ6UQO8TB3lw== X-Received: by 2002:a81:b604:: with SMTP id u4mr4341780ywh.301.1575506305426; Wed, 04 Dec 2019 16:38:25 -0800 (PST) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id l125sm3912470ywf.82.2019.12.04.16.38.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Dec 2019 16:38:24 -0800 (PST) Received: by pryzbyj (Postfix, from userid 1000) id 73512800CF1; Wed, 4 Dec 2019 18:38:23 -0600 (CST) Date: Wed, 4 Dec 2019 18:38:23 -0600 From: Justin Pryzby To: Tomas Vondra Cc: tuomas.leikola@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16111: Unexpected =?utf-8?Q?query?= =?utf-8?Q?_compilation_error_=E2=80=9Cnegative_bitmapset_member_not_allow?= =?utf-8?B?ZWTigJ0=?= Message-ID: <20191205003823.GB2082@telsasoft.com> References: <16111-687799584c3a7e73@postgresql.org> <20191113134114.rxcli5c6zjmryvf6@development> <20191116013642.t45tcb5r2av5nhn5@development> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191116013642.t45tcb5r2av5nhn5@development> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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