Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tm3ND-0003x4-Kf for pgsql-performance@arkaria.postgresql.org; Fri, 21 Dec 2012 14:14:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Tm3NC-0006IH-MC for pgsql-performance@arkaria.postgresql.org; Fri, 21 Dec 2012 14:14:50 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tm3NB-0006IC-Rq for pgsql-performance@postgresql.org; Fri, 21 Dec 2012 14:14:50 +0000 Received: from blu0-omc2-s7.blu0.hotmail.com ([65.55.111.82]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tm3N9-00084X-Bk for pgsql-performance@postgresql.org; Fri, 21 Dec 2012 14:14:49 +0000 Received: from BLU002-W49 ([65.55.111.73]) by blu0-omc2-s7.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 21 Dec 2012 06:14:46 -0800 X-EIP: [mb5JRChCInTHvXVldOx0Hrd2b/tV6l3Z] X-Originating-Email: [charlesrg@outlook.com] Message-ID: From: Charles Gomes To: Tom Lane CC: =?iso-8859-2?B?T25kcmVqIEl2YW5p6A==?= , "pgsql-performance@postgresql.org" Subject: Re: Performance on Bulk Insert to Partitioned Table Date: Fri, 21 Dec 2012 09:14:46 -0500 Importance: Normal In-Reply-To: <27306.1356046747@sss.pgh.pa.us> References: , , <27306.1356046747@sss.pgh.pa.us> Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 21 Dec 2012 14:14:46.0202 (UTC) FILETIME=[879621A0:01CDDF85] X-Pg-Spam-Score: -0.9 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Tom, I may have to rethink it, so I'm going to have about 100 Million rows = per day (5 days a week) 2 Billion per month. My point on partitioning was t= o be able to store 6 months of data in a single machine. About 132 partitio= ns in a total of 66 billion rows. ---------------------------------------- > From: tgl@sss.pgh.pa.us > To: charlesrg@outlook.com > CC: ondrej.ivanic@gmail.com; pgsql-performance@postgresql.org > Subject: Re: [PERFORM] Performance on Bulk Insert to Partitioned Table > Date: Thu, 20 Dec 2012 18:39:07 -0500 > > Charles Gomes writes: > > Using rules would be totally bad as I'm partitioning daily and after on= e year having 365 lines of IF won't be fun to maintain. > > You should probably rethink that plan anyway. The existing support for > partitioning is not meant to support hundreds of partitions; you're > going to be bleeding performance in a lot of places if you insist on > doing that. > > regards, tom lane > > > -- > Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-performance=20=09=09=20=09=20=20= =20=09=09=20=20 --=20 Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance