Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 01C98B5DC0C for ; Mon, 12 Sep 2011 13:23:03 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 76074-04 for ; Mon, 12 Sep 2011 16:22:56 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp2.peak6.com (smtp2.peak6.com [38.98.137.9]) by mail.postgresql.org (Postfix) with ESMTP id 70A98B5DBC5 for ; Mon, 12 Sep 2011 13:22:56 -0300 (ADT) X-AuditID: 0a02cb1e-b7cbdae000007cad-55-4e6e31e12bf7 Message-ID: <4E6E31DF.6020407@peak6.com> Date: Mon, 12 Sep 2011 11:22:55 -0500 From: Shaun Thomas Reply-To: Organization: Peak6 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Marti Raudsepp CC: Andy Colson , Igor Chudov , Subject: Re: Postgres for a "data warehouse", 5-10 TB References: <4E6CC458.4010206@squeakycode.net> In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed content-transfer-encoding: 7bit X-Originating-IP: [10.10.220.61] X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrGIsWRmVeSWpSXmKPExsXCxcQrpvvQMM/P4FSLqMWsdnmLp2+vM1kc 37aQyeL6zHPMDiweO2fdZffY1z6RzePCvmnsHouffmMOYIlqYLRJzMvLL0ksSVVISS1OtlUK cHX0NlMILknMS0ksSlFwySxOzknMzE0tUlLITLFVMlJSKMhJTE7NTc0rsVVKLChIzUtRsuNS wAA2QGWZeQqpecn5KZl56bZKnsH+uhYWppa6hkp28QiQ0M2S8aO9i7XgKEfFydvn2BsYv7J1 MXJwSAiYSJzbW93FyAlkiklcuLeeDcTmFdCQuPFiDztICYuAqkTPMmmQMJuAmsTC3TcZQWwh AVmJ/avOsYLY/ALCEvs+NDGD2KICARILJr1lhBgjKHFy5hMWEFtEQEXi7rT/YPXMArkS3yf0 gdULC9hLfPi4DKiGC2jmISaJX5+ms4MkOAUCJVb+a2OEaLCQWPzmIDuELS+x/e0cZogj5CTu NDyHekVB4vpy/wmMQrOQrJ6FpHsWku4FjMyrGMWLyxKTMzLNCopzSwoM9QpSE7PN9PJSSzYx gmP7tNwOxhUXFA8xCnAwKvHwCrzM8RNiTSwrrsw9xCjBwawkwnvsZa6fEG9KYmVValF+fFFp TmrxIUZtYJBNZJbiTs4Hpp28knhjAwMlcd6kP5l+QgLpwCSQnZpakFoEU83EwSnVwDjt4O5s x4JlHzb4Ca3vvLVp9Y2ySQLtCrERojK2c0054y7P9P/NYLw37DHXIfZ+2SrefwXXxVgTnyh9 OZTHFPBA+UDuxp4lhiZRnA3l/mKfGU8nfsjpmJ8+L0U5VcXQ+NfLPWu6FRfOUn/M+kLYRdtO KWTXTUYexbubbzWWqi+eWBree0b7qRJLcUaioRZzUXEiAFTw4CL5AgAA X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/141 X-Sequence-Number: 44917 On 09/11/2011 12:02 PM, Marti Raudsepp wrote: > Which brings me to another important point: don't do lots of small > write transactions, SAVEPOINTs or PL/pgSQL subtransactions. Besides > being inefficient, they introduce a big maintenance burden. I'd like to second this. Before a notable application overhaul, we were handling about 300-million transactions per day (250M of that was over a 6-hour period). To avoid the risk of mid-day vacuum-freeze, we disabled autovacuum and run a nightly vacuum over the entire database. And that was *after* bumping autovacuum_freeze_max_age to 600-million. You do *not* want to screw with that if you don't have to, and a setting of 600M is about 1/3 of the reasonable boundary there. If not for the forced autovacuums, a database with this much traffic would be corrupt in less than a week. We've managed to cut that transaction traffic by 60%, and it greatly improved the database's overall health. -- Shaun Thomas OptionsHouse | 141 W. Jackson Blvd. | Suite 800 | Chicago IL, 60604 312-676-8870 sthomas@peak6.com ______________________________________________ See http://www.peak6.com/email-disclaimer/ for terms and conditions related to this email