Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 8FC5C1337B77 for ; Fri, 28 Jan 2011 13:48:57 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 77931-09 for ; Fri, 28 Jan 2011 17:48:50 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from EXHUB018-3.exch018.msoutlookonline.net (exhub018-3.exch018.msoutlookonline.net [64.78.17.18]) by mail.postgresql.org (Postfix) with ESMTP id EC7A51337B5C for ; Fri, 28 Jan 2011 13:48:49 -0400 (AST) Received: from EXVMBX018-1.exch018.msoutlookonline.net ([64.78.17.47]) by EXHUB018-3.exch018.msoutlookonline.net ([64.78.17.18]) with mapi; Fri, 28 Jan 2011 09:48:49 -0800 From: Scott Carey To: Stephen Frost , Scott Marlowe CC: Robert Schnabel , "david@lang.hm" , pgsql-performance Date: Fri, 28 Jan 2011 09:50:47 -0800 Subject: Re: How to best use 32 15k.7 300GB drives? Thread-Topic: [PERFORM] How to best use 32 15k.7 300GB drives? Thread-Index: Acu/E55xmOXgBYmFRRiKpvAQ/NAQlA== Message-ID: In-Reply-To: <20110128172810.GE30352@tamriel.snowman.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.2.0.101115 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201101/322 X-Sequence-Number: 42109 On 1/28/11 9:28 AM, "Stephen Frost" wrote: >* Scott Marlowe (scott.marlowe@gmail.com) wrote: >> There's nothing wrong with whole table updates as part of an import >> process, you just have to know to "clean up" after you're done, and >> regular vacuum can't fix this issue, only vacuum full or reindex or >> cluster. > >Just to share my experiences- I've found that creating a new table and >inserting into it is actually faster than doing full-table updates, if >that's an option for you. I wonder if postgres could automatically optimize that, if it thought that it was going to update more than X% of a table, and HOT was not going to help, then just create a new table file for XID's =3D or higher than the on= e making the change, and leave the old one for old XIDs, then regular VACUUM could toss out the old one if no more transactions could see it. > > Thanks, > > Stephen