Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZSMTK-0001ot-9r for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Aug 2015 09:49:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZSMTJ-00046E-Rb for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Aug 2015 09:49:21 +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 1ZSMTJ-000468-C6 for pgsql-hackers@postgresql.org; Thu, 20 Aug 2015 09:49:21 +0000 Received: from tama500.ecl.ntt.co.jp ([129.60.39.148]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZSMTB-0007nF-Mk for pgsql-hackers@postgresql.org; Thu, 20 Aug 2015 09:49:20 +0000 Received: from vc2.ecl.ntt.co.jp (vc2.ecl.ntt.co.jp [129.60.86.154]) by tama500.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id t7K9mtGq015985; Thu, 20 Aug 2015 18:48:55 +0900 Received: from vc2.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 25DF15F592; Thu, 20 Aug 2015 18:48:55 +0900 (JST) Received: from imail3.m.ecl.ntt.co.jp (imail3.m.ecl.ntt.co.jp [129.60.5.248]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 17EF85F612; Thu, 20 Aug 2015 18:48:55 +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 t7K9msiZ019142; Thu, 20 Aug 2015 18:48:55 +0900 Subject: Re: Declarative partitioning To: Simon Riggs References: <55D3093C.5010800@lab.ntt.co.jp> <55D36BFA.7080004@agliodbs.com> <55D4E2D0.3010906@agliodbs.com> <55D5997C.8040405@lab.ntt.co.jp> Cc: Josh Berkus , Pg Hackers From: Amit Langote Message-ID: <55D5A22C.6040304@lab.ntt.co.jp> Date: Thu, 20 Aug 2015 18:47:24 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.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-08-20 PM 06:34, Simon Riggs wrote: > On 20 August 2015 at 10:10, Amit Langote > wrote: > >> On 2015-08-20 AM 05:10, Josh Berkus wrote: >>>> PARTITION BY RANGE ON (columns) INCREMENT BY (INTERVAL '1 month' ) >>>> START WITH value; >>> >>> Oh, I like that syntax! >>> >>> How would it work if there were multiple columns? Maybe we don't want >>> to allow that for this form? >>> >> >> Yea, we could simply restrict it to the single column case, which does not >> sound like a major restriction. >> > > PARTITION BY ... > SUBPARTITION BY ... > > We should plan for that in the way we develop the internals, but full > support can wait until later patches. > At the moment, a form of SUBPARTITION BY is to allow PARTITION BY in a partition definition. But I can see that may not be what people would expect. > My view has long been that the internals are they aspect here, not the > syntax. We need to be able to have a very fast partition-selection > mechanism that can be used in the planner or executor for each tuple. > Working backwards, we need a relcache representation that allows that, and > a catalog representation that allows that and syntax to match. > Agreed. 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