Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D4104476569 for ; Mon, 9 Sep 2002 12:42:01 -0400 (EDT) Received: from mail.libertyrms.com (unknown [209.167.124.227]) by postgresql.org (Postfix) with ESMTP id B0DFB476409 for ; Mon, 9 Sep 2002 12:30:19 -0400 (EDT) Received: from andrew by mail.libertyrms.com with local (Exim 3.22 #3 (Debian)) id 17oRQf-000793-00 for ; Mon, 09 Sep 2002 12:30:25 -0400 Date: Mon, 9 Sep 2002 12:30:25 -0400 From: Andrew Sullivan To: pgsql-admin@postgresql.org Subject: Re: fsync or fdatasync Message-ID: <20020909123025.I15959@mail.libertyrms.com> Mail-Followup-To: Andrew Sullivan , pgsql-admin@postgresql.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from mendola@bigfoot.com on Mon, Sep 09, 2002 at 11:19:50AM +0200 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/93 X-Sequence-Number: 5632 On Mon, Sep 09, 2002 at 11:19:50AM +0200, Gaetano Mendola wrote: > Hi all, > apparently the default value for wal_sync_method is fsync, > and apparently the best method is fdatasync. ^^^^^^^^^^ On which platform? There are all sorts of variables to consider here, most notably whether the given platform happens to support fdatasync. I have found that on some platforms, open_datasync is faster than anything. But you can certainly use fdatasync if your platform supports it. A -- ---- Andrew Sullivan 204-4141 Yonge Street Liberty RMS Toronto, Ontario Canada M2P 2A8 +1 416 646 3304 x110