Re: 8.3.5: Query Planner takes 15+ seconds to plan Update or Delete queries on partitioned tables.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Scott Carey <scott(at)richrelevance(dot)com>
Cc: "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: 8.3.5: Query Planner takes 15+ seconds to plan Update or Delete queries on partitioned tables.
Date: 2009-02-13 15:32:01
Message-ID: 2371.1234539121@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Scott Carey <scott(at)richrelevance(dot)com> writes:
> Child tables of the table in question:
> select count (*) from pg_tables where tablename like pp_logs%';
> count
> -------
> 6062

This is not a bug. Please note the caveat in the fine manual, at the
bottom of
http://www.postgresql.org/docs/8.3/static/ddl-partitioning.html

All constraints on all partitions of the master table are
examined during constraint exclusion, so large numbers of
partitions are likely to increase query planning time
considerably. Partitioning using these techniques will work well
with up to perhaps a hundred partitions; don't try to use many
thousands of partitions.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Marco Vieira 2009-02-13 21:58:00 BUG #4653: zero with negative sign returned on round(sin) function
Previous Message Kevin Grittner 2009-02-13 14:41:08 Re: BUG #4651: Postgresql connection error with PHP 5.