Re: BUG #8274: Wildly insane boolean selectivity estimates - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #8274: Wildly insane boolean selectivity estimates
Date
Msg-id 4165.1374639748@sss.pgh.pa.us
Whole thread Raw
In response to BUG #8274: Wildly insane boolean selectivity estimates  (andrew@tao11.riddles.org.uk)
List pgsql-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

pgsql-bugs by date:

Previous
From: Michael Paquier
Date:
Subject: Re: BUG #8325: Missing script II
Next
From: hailong.li@qunar.com
Date:
Subject: BUG #8327: a bug of spgist index in a heavy write condition