Re: Join optimization for inheritance tables - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Join optimization for inheritance tables
Date
Msg-id 22334.1253982495@sss.pgh.pa.us
Whole thread Raw
In response to Re: Join optimization for inheritance tables  (Herodotos Herodotou <hero@cs.duke.edu>)
List pgsql-hackers
Herodotos Herodotou <hero@cs.duke.edu> writes:
> On Tue, Sep 22, 2009 at 8:06 PM, Jeff Davis <pgsql@j-davis.com> wrote:
>> I think you mean that the planning time is in milliseconds, not seconds.

> The planning time is actually in seconds.

This is exactly why I think this is a dead-end approach.  Trying to do
theorem proving from an unstructured collection of constraints simply
cannot scale to hundreds of partitions, at least not if you want
reasonable planning performance.  There are other aspects of our current
partitioning approach that don't scale either, eg the complexity of the
insert redirection triggers.  We could handle standard cases where
there's a simple partitioning rule with far less overhead than this,
if we had an explicit model of the partitioning rule inside the system.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Join optimization for inheritance tables
Next
From: Dan Colish
Date:
Subject: Re: Hot Standby on git