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 1322867502.54335.YahooMailClassic@web65506.mail.ac4.yahoo.com
Whole thread Raw
In response to Re: Oddball data distribution giving me planner headaches  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general

--- On Fri, 12/2/11, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> The only real fix for that will require cross-column
> statistics, which
> we don't have yet --- without such, there's no way for the
> planner to
> know that distributors have an atypical number of child
> customers.


The only caveat that I can think of here is that each of the customer_id's in the subselect ARE in the MCV list for the
parent_customercolumn for that customer_rel table.  If I had listed SPECIFIC customer ids in the subselect, I would get
spot-onrow estimates.  Is there anything there that gives me any hope? 




pgsql-general by date:

Previous
From: "Ing.Edmundo.Robles.Lopez"
Date:
Subject: Re: weird negative seconds on checkpoint message.
Next
From: Andre Lopes
Date:
Subject: Can't access to database from webapp in PostgreSQL 9.0, from shell it is Ok.