From: | Gregory Stark <stark(at)enterprisedb(dot)com> |
---|---|
To: | "Greg Jaman" <gjaman(at)gmail(dot)com> |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Partition table query performance |
Date: | 2008-11-27 00:48:14 |
Message-ID: | 8763maouy9.fsf@oxford.xeocode.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
"Greg Jaman" <gjaman(at)gmail(dot)com> writes:
> I have a problem with partitioning and I'm wondering if anyone can provide
> some insight. I'm trying to find the max value of a column across multiple
> partitions. The query against the partition set is quite slow while queries
> against child partitions is very fast!
I'm afraid this is a known problematic use case of Postgres's current
partitioning support. Postgres is not capable of finding the plan which you're
undoubtedly looking for where it uses the same plan as your child table query
iterating over the partitions.
There are several groups working to improve this in different ways but none of
them appear to be on track to be in 8.4 so it will be 8.5 or later before they
appear. Sorry.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's 24x7 Postgres support!
From | Date | Subject | |
---|---|---|---|
Next Message | Kevin Kempter | 2008-11-27 04:21:04 | performance tuning queries |
Previous Message | Scott Carey | 2008-11-26 23:52:44 | Re: Memory Allocation |