Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 6E5971337B5B for ; Thu, 7 Oct 2010 18:43:22 -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 67320-04 for ; Thu, 7 Oct 2010 21:43:15 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail148107.authsmtp.com (outmail148107.authsmtp.com [62.13.148.107]) by mail.postgresql.org (Postfix) with ESMTP id B1AC81337B4A for ; Thu, 7 Oct 2010 18:43:14 -0300 (ADT) Received: from mail-c194.authsmtp.com (mail-c194.authsmtp.com [62.13.128.121]) by punt2.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id o97LhCja064431; Thu, 7 Oct 2010 21:43:12 GMT Received: from [192.168.0.5] ([81.5.146.37]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2) with ESMTP id o97LhADN082281; Thu, 7 Oct 2010 22:43:10 +0100 (BST) Subject: Re: On Scalability From: Simon Riggs To: Vincenzo Romano Cc: pgsql-hackers@postgresql.org In-Reply-To: References: <1280423526.8613.36.camel@jd-desktop.unknown.charter.com> <1280425184.8613.41.camel@jd-desktop.unknown.charter.com> <1280427410.8613.44.camel@jd-desktop.unknown.charter.com> <4CAD769D.9090301@enterprisedb.com> <1286437290.2304.192.camel@ebony> <4CAD7BED.4050009@enterprisedb.com> Content-Type: text/plain; charset="UTF-8" Date: Thu, 07 Oct 2010 22:42:59 +0100 Message-ID: <1286487779.2304.372.camel@ebony> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Server-Quench: e147c27e-d25b-11df-80b9-0022640b883e X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZOTQEd DAteCiN5VAwpPBRK HVkIKg5MJUcNSQVJ NksadBtFaAJbYlpF HGQLWlREUl97XWB/ agofZQRDZ1RPWwN0 U09WR1pVCwUmXhUG ekZvJmdyfwdEcH8+ YU5mXj4OXUB9JkR6 F1MAF2hUeGZhPDYC WEAKfh5UcAFIeBtF OFh3VyZDAzANdhEY NiQQEgoKCH14Lmxu SQgJJFgTRUcXD1YA X-Authentic-SMTP: 61633235383639.1015:706 X-AuthFastPath: 0 (Was 255) X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201010/511 X-Sequence-Number: 171551 On Thu, 2010-10-07 at 14:10 +0200, Vincenzo Romano wrote: > Making these things sub-linear (whether not O(log n) or even O(1) ), > provided that there's way to, would make this RDBMS more appealing > to enterprises. > I mean also partial indexes (as an alternative to table partitioning). > Being able to effectively cope with "a dozen child tables or so" it's more > like an amateur feature. > If you really need partitioning (or just hierarchical stuff) I think you'll need > for quite more than a dozen items. > If you partition by just weeks, you'll need 50+ a year. > > Is there any precise direction to where look into the code for it? > > Is there a way to put this into a wish list? It's already on the wish list ("TODO") and has been for many years. We've mostly lacked somebody with the experience and time/funding to complete that implementation work. I figure I'll be doing it for 9.2 now; it may be difficult to do this for next release. Theoretically, this can be O(n.log n) for range partitioning and O(1) for exact value partitioning, though the latter isn't a frequent use case. Your conclusion that the current partitioning only works with a dozen or so items doesn't match the experience of current users however. -- Simon Riggs www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Training and Services