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

From Harald Fuchs
Subject Re: Oddball data distribution giving me planner headaches
Date
Msg-id 86pqg69fy4.fsf@protecting.net
Whole thread Raw
In response to Re: Oddball data distribution giving me planner headaches  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Jeff Amiel <becauseimjeff@yahoo.com> writes:

>> 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
completelydifferent data patterns than others.   
> Back to the drawing board...thanks!

I find your table structure anyway somewhat strange.  For an ordinary
parent/child relationship a parent_id column in the customer table would
be enough.  Do you really have an m:n relationship between parents and
children?

pgsql-general by date:

Previous
From: Craig Ringer
Date:
Subject: Re: Postgresql + corrupted disk = data loss. (Need help for database recover)
Next
From: Christoph Zwerschke
Date:
Subject: Shared memory usage in PostgreSQL 9.1