Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 3D9252E00CF for ; Fri, 21 Mar 2008 10:59:08 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 54813-03 for ; Fri, 21 Mar 2008 10:59:04 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from outmail136026.authsmtp.com (outmail136026.authsmtp.com [62.13.136.26]) by postgresql.org (Postfix) with ESMTP id 8CDEB2E00CD for ; Fri, 21 Mar 2008 10:59:04 -0300 (ADT) Received: from squirrel.dmpriest.net.uk (squirrel.dmpriest.net.uk [62.13.128.25]) by punt3.authsmtp.com (8.13.8/8.13.8/Kp) with ESMTP id m2LDwxpG006284; Fri, 21 Mar 2008 13:59:00 GMT Received: from [192.168.0.3] (85-211-64-98.dyn.gotadsl.co.uk [85.211.64.98]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m2LDwwWB027596; Fri, 21 Mar 2008 13:58:58 GMT Subject: Re: Auto Partitioning Patch - WIP version 1 From: Simon Riggs To: NikhilS Cc: pgsql-patches@postgresql.org, Bruce Momjian In-Reply-To: References: Content-Type: text/plain Date: Fri, 21 Mar 2008 14:00:11 +0000 Message-Id: <1206108011.4285.666.camel@ebony.site> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2 Content-Transfer-Encoding: 7bit X-Server-Quench: f428278f-f74e-11dc-b66f-001871e930f4 X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksadRtFagRbYFhD HGQLW1xEUV57XGt/ bgMfZQBDYEtPQQNu TkFBXVBXCwUmXB59 cllZNWtydQJDcXg+ Z0ZmWT4NWEZyd0F1 FFMCEmlTeGZhPDMC AkZeIR5UcAJCeR4Q Y1N/AndDAzANdhEA NjMYHx0KCH12NThS CjkEN04TXUcMGD86 SFg6FCkkHQVADxoS F1Q4J0QHHUEXehxa X-Authentic-SMTP: 61633235383639.cat.dmpriest.net.uk:787/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system! X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/277 X-Sequence-Number: 5340 On Fri, 2007-03-30 at 12:28 +0530, NikhilS wrote: > Please find attached the WIP version 1 of the auto partitioning patch. > There was discussion on this a while back on -hackers at: > http://archives.postgresql.org/pgsql-hackers/2007-03/msg00375.php > > Please note that this patch tries to automate the activities that > currently are carried out manually. It does nothing fancy beyond that > for now. There were a lot of good suggestions, I have noted them down > but for now I have tried to stick to the initial goal of automating > existing steps for providing partitioning. > > Things that this patch does: I think this patch is a reasonable first step and clearly written, but not yet ready for application to Postgres in this commit fest. I would say we need: * Clear explanation of the new syntax, with examples of each permutation so we can see how that would work. In light of recent discussions on -hackers we need to take a view on whether we should go with Gavin's suggested syntax or this syntax. * There are some additional syntax items I don't understand the need for. So these need to be explained. * I would be against using the term PARTITION BY since it is already a phrase that is part of the SQL Standard. Perhaps PARTITIONED BY? * We need regression tests for any new command syntax * No docs - that might be the same thing as the first item -- Simon Riggs 2ndQuadrant http://www.2ndQuadrant.com PostgreSQL UK 2008 Conference: http://www.postgresql.org.uk