Re: Oddball data distribution giving me planner headaches - Mailing list pgsql-general

From Jeff Amiel
Subject Re: Oddball data distribution giving me planner headaches
Date
Msg-id 1322863594.24224.YahooMailClassic@web65509.mail.ac4.yahoo.com
Whole thread Raw
In response to Re: Oddball data distribution giving me planner headaches  ("David Johnston" <polobo@yahoo.com>)
Responses Re: Oddball data distribution giving me planner headaches  ("David Johnston" <polobo@yahoo.com>)
List pgsql-general

--- On Fri, 12/2/11, David Johnston <polobo@yahoo.com> wrote:

> From: David Johnston <polobo@yahoo.com>

> ---------------------------------------------------------
> My, possibly naïve, observation:
>
> So aside from the fact the estimates seem to be off the
> planner has still
> chosen the most effective plan?  In that situation no
> matter how accurate
> you get the statistics you will not gain any performance
> because the planner
> will never choose a different plan.
>
Thanks.....
I'm not interested in optimizing this query.....it's fast and efficient.  However, the planner thinks that it is going
toreturn a million rows when it is only going to return one thousand.  When this query is used as an element of a
BIGGERquery, that causes me all sorts of planner issues.... 
That's the problem I am trying to solve...why the planner is 3 orders of magnitude off in row estimation.


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: \dT+ does not give elements ?
Next
From: Tom Lane
Date:
Subject: Re: Oddball data distribution giving me planner headaches