Re: Oddball data distribution giving me planner headaches

From: Harald Fuchs <hari(dot)fuchs(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Oddball data distribution giving me planner headaches
Date: 2011-12-03 09:12:35
Message-ID: 86pqg69fy4.fsf@protecting.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jeff Amiel <becauseimjeff(at)yahoo(dot)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 completely different 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?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Christoph Zwerschke 2011-12-03 12:39:34 Shared memory usage in PostgreSQL 9.1
Previous Message Craig Ringer 2011-12-03 07:23:30 Re: Postgresql + corrupted disk = data loss. (Need help for database recover)