From: Tom Lane <tgl@sss.pgh.pa.us>
To: andrew@tao11.riddles.org.uk
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8274: Wildly insane boolean selectivity estimates
Date: Wed, 24 Jul 2013 00:22:28 -0400
Message-ID: <4165.1374639748@sss.pgh.pa.us> (raw)
In-Reply-To: <E1Utfat-0001LU-N7@wrigleys.postgresql.org>
References: <E1Utfat-0001LU-N7@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
andrew@tao11.riddles.org.uk writes:
> 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.
Doh, definitely a bit of brain fade there :-(
> Suggested fix at:
> https://gist.github.com/RhodiumToad/5901567
Seems reasonable, will fix.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, andrew@tao11.riddles.org.uk
Subject: Re: BUG #8274: Wildly insane boolean selectivity estimates
In-Reply-To: <4165.1374639748@sss.pgh.pa.us>
References: <E1Utfat-0001LU-N7@wrigleys.postgresql.org> <4165.1374639748@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox