Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Utfb9-0000YI-8R for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Jul 2013 15:00:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Utfb8-00085u-Mn for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Jul 2013 15:00:58 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Utfb7-00084K-6G for pgsql-bugs@postgresql.org; Mon, 01 Jul 2013 15:00:57 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Utfb0-0001rQ-CZ for pgsql-bugs@postgresql.org; Mon, 01 Jul 2013 15:00:56 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Utfaz-00069U-0b for pgsql-bugs@postgresql.org; Mon, 01 Jul 2013 15:00:50 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1Utfat-0001LU-N7 for pgsql-bugs@postgresql.org; Mon, 01 Jul 2013 15:00:43 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8274: Wildly insane boolean selectivity estimates To: pgsql-bugs@postgresql.org From: andrew@tao11.riddles.org.uk Message-Id: Date: Mon, 01 Jul 2013 15:00:43 +0000 X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 8274 Logged by: Andrew Gierth Email address: andrew@tao11.riddles.org.uk PostgreSQL version: 9.1.9 Operating system: any Description: The guy on IRC who ran into this one was using 9.1.9, but it seems to still exist in master. The handling of freq_null for estimating IS NOT TRUE/FALSE for boolean columns which are all null or almost all null (enough that analyze doesn't find any non-null values to put in MCV) is completely off in the weeds. Suggested fix at: https://gist.github.com/RhodiumToad/5901567 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs