Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZSLy7-0000RZ-RP for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Aug 2015 09:17:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZSLy6-0004V5-Kg for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Aug 2015 09:17:06 +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 1ZSLy5-0004Uw-0G for pgsql-hackers@postgresql.org; Thu, 20 Aug 2015 09:17:05 +0000 Received: from tama500.ecl.ntt.co.jp ([129.60.39.148]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZSLxw-0007Bv-1L for pgsql-hackers@postgresql.org; Thu, 20 Aug 2015 09:17:03 +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 t7K9Bq1e015068; Thu, 20 Aug 2015 18:11:52 +0900 Received: from vc1.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 405E05F65A; Thu, 20 Aug 2015 18:11:52 +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 224C65F623; Thu, 20 Aug 2015 18:11:52 +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 t7K9BpLH030667; Thu, 20 Aug 2015 18:11:52 +0900 Subject: Re: Declarative partitioning To: Josh Berkus , Simon Riggs References: <55D3093C.5010800@lab.ntt.co.jp> <55D36BFA.7080004@agliodbs.com> <55D4E2D0.3010906@agliodbs.com> Cc: Pg Hackers From: Amit Langote Message-ID: <55D5997C.8040405@lab.ntt.co.jp> Date: Thu, 20 Aug 2015 18:10:20 +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: <55D4E2D0.3010906@agliodbs.com> 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 AM 05:10, Josh Berkus wrote: > On 08/19/2015 04:59 AM, Simon Riggs wrote: >> I like the idea of a regular partitioning step because it is how you >> design such tables - "lets use monthly partitions". >> >> This gives sanely terse syntax, rather than specifying pages and pages >> of exact values in DDL.... >> >> 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. 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