Re: plan time of MASSIVE partitioning ... - Mailing list pgsql-hackers

From Hans-Jürgen Schönig
Subject Re: plan time of MASSIVE partitioning ...
Date
Msg-id 72BE725D-2239-437A-965C-0DEBD8837F79@cybertec.at
Whole thread Raw
In response to Re: plan time of MASSIVE partitioning ...  (Stephen Frost <sfrost@snowman.net>)
Responses Re: plan time of MASSIVE partitioning ...
List pgsql-hackers
here is the patch again.
we accidentally attached a wrong test file to the original posting so it grew to big. we had to revoke it from the
moderator(this happens if you code from 8am to 10pm). 
here is just the patch - it is nice and small.

you can easily test it by making yourself a nice parent table, many subtables (hundreds or thousands) and a decent
numberof indexes per partition. 
then run PREPARE with \timing to see what happens.
you should get scary planning times. the more potential indexes and tables the more scary it will be.

using this wonderful RB tree the time for this function call goes down to basically zero.
i hope this is something which is useful to some folks out there.

    many thanks,

        hans







On Sep 8, 2010, at 4:18 PM, Stephen Frost wrote:

> * Hans-Jürgen Schönig (postgres@cybertec.at) wrote:
>> no, we have not checked memory consumption.
>> there is still some stuff left to optimize away - it seems we are going close to O(n^2) somewhere.
>> "equal" is called really often in our sample case as well:
>
> Did the mail with the scripts, etc, get hung up due to size or
> something..?  I didn't see it on the mailing list nor in the archives..
> If so, could you post them somewhere so others could look..?
>
>     Thanks,
>
>         Stephen


--
Cybertec Schönig & Schönig GmbH
Gröhrmühlgasse 26
A-2700 Wiener Neustadt
Web: http://www.postgresql-support.de


Attachment

pgsql-hackers by date:

Previous
From: Marko Kreen
Date:
Subject: Re: UTF16 surrogate pairs in UTF8 encoding
Next
From: Magnus Hagander
Date:
Subject: Re: git: uh-oh