Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 0F8A36346B2 for ; Tue, 7 Jul 2009 18:03:43 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 07727-08 for ; Tue, 7 Jul 2009 18:03:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtpauth15.mail.atl.earthlink.net (smtpauth15.mail.atl.earthlink.net [209.86.89.75]) by mail.postgresql.org (Postfix) with ESMTP id 1C30F63456A for ; Tue, 7 Jul 2009 18:03:31 -0300 (ADT) Received: from [12.191.89.68] (helo=normanm90) by smtpauth15.mail.atl.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1MOHoz-0007EL-Gg; Tue, 07 Jul 2009 17:03:25 -0400 Message-ID: <71C5B18DD4D54BA1A5828B8CC90C3C7C@normanm90> From: "Jon Norman" To: "Rainer Bauer" Cc: References: <8709734C5D12419584134E5559985E63@normanm90> <8g7m45tjp8c3q1qon9rkjfand1qiq4r0mu@4ax.com> Subject: Re: fsync and Windows XP Date: Tue, 7 Jul 2009 16:03:23 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-ELNK-Trace: d43b1c40e4339a3a946d4f1007b05511e9c7218ab0f5e41d935b3b137c8e6ec5991f735c8db1c768a972ae111292ed46350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 12.191.89.68 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=STOX_REPLY_TYPE=0.001 X-Spam-Level: X-Archive-Number: 200907/30 X-Sequence-Number: 32771 I've tried the different wal_sync_method settings and nothing seems to work. I don't know if it matters, but I'm running PostgreSQL on an XP Embedded system. Initially, I had most of my tables installed in the default location, c:\program files\postgresql\8.3\data, on compact flash -- which is protected with Enhanced Write Filter (EWF) and uses Hibernate Once Resume Many (HORM). My log tables were mapped to a solid state drive using tablespace definitions. This configuration didn't seem to work very well so I ended up installing everything to the solid state drive that isn't being protected with EWF and is not part of the hibernated image. When I disconnect power from the system I'd like to see recently added records show up on the next boot. If I perform a clean shutdown of the system the records written to disk. > >>What is the trick for getting the fsync feature to work with Windows XP. >> I've turned off disk caching and set fsync = on in my postgresql.conf, >> but records are still not immediately written to disk. > > Check out the wal_sync_method parameter: > > > Rainer >