Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zzhrh-00014e-Qs for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Nov 2015 09:20:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zzhrg-00020Y-OD for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Nov 2015 09:20:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZzhqN-0000Pb-1p for pgsql-hackers@postgresql.org; Fri, 20 Nov 2015 09:18:59 +0000 Received: from tama500.ecl.ntt.co.jp ([129.60.39.148]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZzhqF-0000Wr-HS for pgsql-hackers@postgresql.org; Fri, 20 Nov 2015 09:18:58 +0000 Received: from vc1.ecl.ntt.co.jp (vc1.ecl.ntt.co.jp [129.60.86.153]) by tama500.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id tAK9ITo8000678; Fri, 20 Nov 2015 18:18:29 +0900 Received: from vc1.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 203745F612; Fri, 20 Nov 2015 18:18:29 +0900 (JST) Received: from imail3.m.ecl.ntt.co.jp (imail3.m.ecl.ntt.co.jp [129.60.5.248]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 087925F590; Fri, 20 Nov 2015 18:18:29 +0900 (JST) Received: from [127.0.0.1] ([129.60.241.61]) by imail3.m.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id tAK9ISqW031936; Fri, 20 Nov 2015 18:18:28 +0900 Subject: Re: Declarative partitioning To: Robert Haas References: <55D3093C.5010800@lab.ntt.co.jp> <20150826140158.3678.53116.pgcf@coridan.postgresql.org> <563341AE.5010207@lab.ntt.co.jp> Cc: Simon Riggs , "pgsql-hackers@postgresql.org" From: Amit Langote Message-ID: <564EE560.60106@lab.ntt.co.jp> Date: Fri, 20 Nov 2015 18:18:24 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 2015/11/06 1:29, Robert Haas wrote: > On Fri, Oct 30, 2015 at 6:08 AM, Amit Langote > wrote: >> The DDL and catalogs part are not much different from what I had last >> described though I took a few steps to simplify things. I dropped the >> multi-level partitioning bit > > Hmm, that doesn't sound good to me. I think multi-level partitioning > is a reasonably important use case. I agree. I'm in the process of reformulating this proposal from the syntax, catalog and DDL -centric perspective and will re-incorporate multi-level partitioning notion into it. It was a mistake to drop it. I am thinking of introducing an explicit notion of sub-partition key and sub-partitions (of the top parent as far as syntactic notation is concerned). I guess it would not be unreasonable to think that most use-cases that multi-level partitioning is used for require at most 2 levels. It will enable us to use a more intuitive syntax and make internals easier to manage. Thanks, Amit -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers