Re: Oddball data distribution giving me planner headaches

From: Jeff Amiel <becauseimjeff(at)yahoo(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Oddball data distribution giving me planner headaches
Date: 2011-12-02 22:22:48
Message-ID: 1322864568.39918.YahooMailClassic@web65505.mail.ac4.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

--- On Fri, 12/2/11, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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.
>

I suspected as such.

> At the moment I think the only way to work around this is
> to denormalize
> your schema a bit. 

And I feared as much.
It's biting me in other areas as well...this unusual distribution of data...certain types of customers have completely different data patterns than others.
Back to the drawing board...thanks!

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ing.Edmundo.Robles.Lopez 2011-12-02 22:33:05 weird negative seconds on checkpoint message.
Previous Message Jeff Amiel 2011-12-02 22:20:33 Re: Oddball data distribution giving me planner headaches