Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 5F08C6331CC for ; Tue, 11 May 2010 05:00:35 -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 84653-03 for ; Tue, 11 May 2010 08:00:24 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ew0-f223.google.com (mail-ew0-f223.google.com [209.85.219.223]) by mail.postgresql.org (Postfix) with ESMTP id 457A263229F for ; Tue, 11 May 2010 05:00:24 -0300 (ADT) Received: by ewy23 with SMTP id 23so2318205ewy.34 for ; Tue, 11 May 2010 01:00:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=7XpctLTtNqGKDRTszk/0R1ISlX/z4+whRRNKYazT1QU=; b=iMsCyF+CZZ5mlfkeswoClKZLy36nMSWbFnG2I8YgskXf5osJmMpKoSQ+nSyy5s4udE 3HUwFpHdBjfhzPuFJ5zA39U+Ind60UwXmCBbCtjRZJyvG69FuHcga/5q7yhyGtU82bkE aDpQ9JKewRxkpq16L04sXoYAURjGieya/NwMA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=MVS5mj93PtusFi2NAVPLzsHwaZ9Qi+RwZrtRkY8to2FlAci/4BMvYg4lcC/nId7s9Z OvkxpLb6wjZU4SjK96FtvEKpk0oDEgJbaFDC4R5Lipzg+/EAJ6HUrsXcPFi7ukNBTJAn zgg59kQdyTEYyJMFVnKbswFI1AkXpdy8tEWeU= Received: by 10.213.44.80 with SMTP id z16mr2234946ebe.91.1273564823209; Tue, 11 May 2010 01:00:23 -0700 (PDT) Received: from [0.0.0.0] (5357DA75.cable.casema.nl [83.87.218.117]) by mx.google.com with ESMTPS id 13sm2939170ewy.9.2010.05.11.01.00.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 11 May 2010 01:00:22 -0700 (PDT) Message-ID: <4BE90E95.6060100@gmail.com> Date: Tue, 11 May 2010 10:00:21 +0200 From: Yeb Havinga User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Kevin Grittner CC: jd@commandprompt.com, Greg Stark , Robert Haas , Bruce Momjian , Michael Tharp , pgsql-hackers@postgresql.org, Craig Ringer Subject: Re: no universally correct setting for fsync References: <4BE81CA1.4080201@partiallystapled.com> <201005101512.o4AFCZS27089@momjian.us> <4BE7E62C02000025000314B7@gw.wicourts.gov> <1273516977.8624.18.camel@jd-desktop.unknown.charter.com> <4BE8118502000025000314CB@gw.wicourts.gov> In-Reply-To: <4BE8118502000025000314CB@gw.wicourts.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201005/498 X-Sequence-Number: 162161 Kevin Grittner wrote: > "Joshua D. Drake" wrote: > > >> The answer to this is: >> >> PostgreSQL.org recommends that this setting be left on at all >> times. Turning it off, may lead to data corruption. >> >> Anything else is circumstantial and based on knowledge and facts >> we don't have about environmental factors. >> > > Perhaps Josh's language for fsync could be modified to work here > (we're now talking about full_page_writes, for anyone who's lost > track): > > | it is only advisable to turn off fsync if you can easily recreate > | your entire database from external data. > > That covers bulk loads to an empty or just-backed-up database and > entirely redundant databases. Saying it should never be turned off > would tend to make one wonder why we have the setting at all. > Would the term "entirely redundant databases" include (synchronously) replicated databases? (ps: I did indeed lose track about whether this is about fsync or full_page_writes and did not get on the track again) regards, Yeb Havinga