Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id ECF52632337 for ; Fri, 7 May 2010 20:33:11 -0300 (ADT) 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 17271-01 for ; Fri, 7 May 2010 23:33:04 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from dd1514.kasserver.com (dd1514.kasserver.com [85.13.128.107]) by mail.postgresql.org (Postfix) with ESMTP id 521B0632C49 for ; Fri, 7 May 2010 20:33:03 -0300 (ADT) Received: from [192.168.1.3] (dslb-094-220-230-086.pools.arcor-ip.net [94.220.230.86]) by dd1514.kasserver.com (Postfix) with ESMTP id EE7AF1874064; Sat, 8 May 2010 01:32:52 +0200 (CEST) Date: Sat, 08 May 2010 01:32:59 +0200 From: Bernd Helmle To: Kevin Grittner , Andrew Dunstan cc: pgsql-hackers@postgresql.org Subject: Re: no universally correct setting for fsync Message-ID: In-Reply-To: <4BE3E205020000250003138F@gw.wicourts.gov> References: <4BE3D3930200002500031382@gw.wicourts.gov> <4BE425F7.30804@dunslane.net> <4BE3E205020000250003138F@gw.wicourts.gov> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.8 tagged_above=-5 required=5 tests=BAYES_50=0.8 X-Spam-Level: X-Archive-Number: 201005/380 X-Sequence-Number: 162043 --On 7. Mai 2010 09:48:53 -0500 Kevin Grittner wrote: > I think it goes beyond "tweaking" -- I think we should have a bald > statement like "don't turn this off unless you're OK with losing the > entire contents of the database cluster." A brief listing of some > cases where that is OK might be illustrative. > +1 > I never meant to suggest any statement in that section is factually > wrong; it's just all too rosy, leading people to believe it's no big > deal to turn it off. I think one mistake in this paragraph is the passing mention of "performance". I've seen installations in the past with fsync=off only because the admin was pressured to get instantly "more speed" out of the database (think of "fast_mode=on"). In my opinion, phrases like "performance penalty" are misleading, if you need that setting in 99% of all use cases for reliable operation. I've recently even started to wonder if the performance gain with fsync=off is still that large on modern hardware. While testing large migration procedures to a new version some time ago (on an admitedly fast storage) i forgot here and then to turn it off, without a significant degradation in performance. -- Thanks Bernd