Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id D01201337B4C for ; Mon, 4 Oct 2010 20:37:05 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 33968-01 for ; Mon, 4 Oct 2010 23:36:58 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 60DE81336971 for ; Mon, 4 Oct 2010 20:36:58 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o94NaeGG009985; Mon, 4 Oct 2010 19:36:40 -0400 (EDT) To: Josh Berkus cc: pgsql-performance@postgresql.org Subject: Re: Issue for partitioning with extra check constriants In-reply-to: <4CAA1E1B.8080505@agliodbs.com> References: <4CA672D7.3070405@agliodbs.com> <1548.1285977377@sss.pgh.pa.us> <4CA67580.7070003@agliodbs.com> <6813.1285978581@sss.pgh.pa.us> <4CAA1E1B.8080505@agliodbs.com> Comments: In-reply-to Josh Berkus message dated "Mon, 04 Oct 2010 11:34:03 -0700" Date: Mon, 04 Oct 2010 19:36:40 -0400 Message-ID: <9984.1286235400@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/31 X-Sequence-Number: 40450 Josh Berkus writes: >> And your point is? The design center for the current setup is maybe 5 >> or 10 partitions. We didn't intend it to be used for more partitions >> than you might have spindles to spread the data across. > Where did that come from? It certainly wasn't anywhere when the feature > was introduced. Simon intended for this version of partitioning to > scale to 100-200 partitions (and it does, provided that you dump all > other table constraints), and partitioning has nothing to do with > spindles. I think you're getting it mixed up with tablespaces. [ shrug... ] If Simon thought that, he obviously hadn't done any careful study of the planner's performance. You can maybe get that far as long as the partitions have just very simple constraints, but anything nontrivial won't scale. As you found out. regards, tom lane