Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 1B5BF635CAD for ; Sat, 8 May 2010 10:10:10 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 89895-06 for ; Sat, 8 May 2010 13:10:01 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 031D9635B78 for ; Sat, 8 May 2010 10:10:02 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Sat, 08 May 2010 08:10:00 -0500 Message-Id: <4BE51C4F02000025000313CB@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Sat, 08 May 2010 08:09:51 -0500 From: "Kevin Grittner" To: , Subject: Re: [HACKERS] no universally correct setting for fsync Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.21 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201005/6 X-Sequence-Number: 5503 Josh Berkus wrote: > I believe that the note about needing fsync for Warm Standby to > work correctly is true, but could someone verify it? It couldn't really affect the archiving of the WAL files, but if your warm standby is there for recovery purposes, it might not make a lot of sense to turn off fsync on the standby -- if that is something which has an effect during the recovery phase. Does it? Also, perhaps the issue deserves some mention in the PITR recovery section: http://www.postgresql.org/docs/9.0/static/continuous-archiving.html#BACKUP-PITR-RECOVERY Step 6 says: | If you have unarchived WAL segment files that you saved in step 2, | copy them into pg_xlog/. (It is best to copy them, not move them, | so you still have the unmodified files if a problem occurs and you | have to start over.) If the recovery is happening because of OS or hardware failure on the source, and it was running with fsync off, this might be unwise. -Kevin