Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aVTVU-0003O1-Hi for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Feb 2016 00:28:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aVTVU-00052a-07 for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Feb 2016 00:28:44 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aVTVT-00052T-3H for pgsql-hackers@postgresql.org; Tue, 16 Feb 2016 00:28:43 +0000 Received: from tama50.ecl.ntt.co.jp ([129.60.39.147]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aVTVO-0000eB-7d for pgsql-hackers@postgresql.org; Tue, 16 Feb 2016 00:28:40 +0000 Received: from vc2.ecl.ntt.co.jp (vc2.ecl.ntt.co.jp [129.60.86.154]) by tama50.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id u1G0SZGk002568; Tue, 16 Feb 2016 09:28:35 +0900 Received: from vc2.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 752265F611; Tue, 16 Feb 2016 09:28:35 +0900 (JST) Received: from jcms-pop21.ecl.ntt.co.jp (jcms-pop21.ecl.ntt.co.jp [129.60.87.134]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 67EF25F58E; Tue, 16 Feb 2016 09:28:35 +0900 (JST) Received: from [127.0.0.1] (unknown [129.60.241.61]) by jcms-pop21.ecl.ntt.co.jp (Postfix) with ESMTP id 56039400B12; Tue, 16 Feb 2016 09:28:35 +0900 (JST) Subject: Re: Declarative partitioning References: <55D3093C.5010800@lab.ntt.co.jp> <56A23484.4000504@2ndquadrant.com> <56A9D51E.2000508@lab.ntt.co.jp> <56C1302D.6070403@lab.ntt.co.jp> From: Amit Langote Message-ID: <56C26D27.40108@lab.ntt.co.jp> Date: Tue, 16 Feb 2016 09:28:23 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: Corey Huinker Cc: pgsql-hackers@postgresql.org X-TM-AS-MML: disable X-Pg-Spam-Score: -2.6 (--) 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 Hi Corey, On 2016/02/16 5:15, Corey Huinker wrote: >> >> The individual patches have commit messages that describe code changes. >> This is registered in the upcoming CF. Feedback and review is greatly >> welcomed! >> > We have a current system that is currently a mix of tables, each of which > is range partitioned into approximately 15 partitions (using the pgxn range > partitioning extension), and those partitions are themselves date-series > partitioned via pg_partman. The largest table ingests about 100M rows per > day in a single ETL. I will try this patch out and see how well it compares > in handling the workload. Do you have any areas of interest or concern that > I should monitor? Thanks a lot for willing to give it a spin! I would say this patch series is more geared toward usability. For example, you won't have to write a trigger to route tuples to correct partitions. You can try your mentioned ETL load and see if the patch's implementation of tuple routing fares any better than existing trigger-based approach. Maybe, you were expecting something like load into a stand-alone table and then ALTER TABLE INHERIT to instantly load into the partitioned table (roll-in), but that command is not yet implemented (ATTACH PARTITION command will show a "not implemented" error message). Also, you won't see any optimizer and executor changes. Queries will still use the same plans as existing inheritance-based partitioned tables, although as I mentioned, constraint exclusion won't yet kick in. That will be fixed very shortly. And of course, comments on syntax are welcome as well. 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