Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 4DF0A632BC2 for ; Fri, 23 Jul 2010 19:16:24 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 51564-08 for ; Fri, 23 Jul 2010 22:16:14 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 82013632A53 for ; Fri, 23 Jul 2010 19:16:15 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id C9D5B34C211; Fri, 23 Jul 2010 15:16:13 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tz+CkSQgouBv; Fri, 23 Jul 2010 15:16:11 -0700 (PDT) Received: from [75.142.153.107] (unknown [75.142.153.107]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 3090634C210; Fri, 23 Jul 2010 15:16:11 -0700 (PDT) Subject: Re: Strange explain on partitioned tables From: "Joshua D. Drake" Reply-To: jd@commandprompt.com To: gvfontenay@lbl.gov Cc: pgsql-performance@postgresql.org In-Reply-To: <4C4A11CB.6040800@lbl.gov> References: <4C47F8C8.10005@edd.fr> <4C484874.3060609@2ndquadrant.com> <4C4A11CB.6040800@lbl.gov> Content-Type: text/plain; charset="UTF-8" Organization: Command Prompt, Inc. Date: Fri, 23 Jul 2010 15:16:10 -0700 Message-ID: <1279923370.9866.37.camel@jd-desktop.unknown.charter.com> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.001 tagged_above=-10 required=5 tests=BAYES_20=-0.001 X-Spam-Level: X-Archive-Number: 201007/342 X-Sequence-Number: 39731 On Fri, 2010-07-23 at 15:03 -0700, Gerald Fontenay wrote: > > The PostgreSQL partitioning system is aimed to support perhaps a > > hundred inherited tables. You can expect to get poor performance on > > queries if you create 1000 of them. > > Hi, > > Why is that you would expect poor performance for say 1000 or more? I > have a ~1000 inherited tables and I don't see any significant slowdowns. > I only ever access a single inherited table at a time though in this > situation. I suppose I am using inheritance only for organization in > this case... It is variable based on workload and as I recall has to do with the planning time. As the number of children increases, so does the planning time. Joshua D. Drake -- PostgreSQL.org Major Contributor Command Prompt, Inc: http://www.commandprompt.com/ - 509.416.6579 Consulting, Training, Support, Custom Development, Engineering http://twitter.com/cmdpromptinc | http://identi.ca/commandprompt