Search Postgresql Archives

Re: Oddball data distribution giving me planner headaches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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

> From: David Johnston <polobo@xxxxxxxxx>

> ---------------------------------------------------------
> 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 to return a million rows when it is only going to return one thousand.  When this query is used as an element of a BIGGER query, 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.


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux