Skip site navigation (1) Skip section navigation (2)

Re: [pgsql-hackers-win32] win32 performance - fsync question

From: "Dann Corbit" <DCorbit(at)connx(dot)com>
To: "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>,"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Magnus Hagander" <mha(at)sollentuna(dot)net>,"Michael Paesold" <mpaesold(at)gmx(dot)at>, <pgsql-hackers(at)postgresql(dot)org>,<pgsql-hackers-win32(at)postgresql(dot)org>,"Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com>
Subject: Re: [pgsql-hackers-win32] win32 performance - fsync question
Date: 2005-03-17 19:24:24
Message-ID: D425483C2C5C9F49B5B7A41F89441547055A03@postal.corporate.connx.com (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-hackers-win32
The default should clearly be the safest method.

Personally, I would disable anything but the safest method for all
database files that are not read-only.

IMO-YMMV.
-----Original Message-----
From: pgsql-hackers-owner(at)postgresql(dot)org
[mailto:pgsql-hackers-owner(at)postgresql(dot)org] On Behalf Of Bruce Momjian
Sent: Thursday, March 17, 2005 10:53 AM
To: Tom Lane
Cc: Magnus Hagander; Michael Paesold; pgsql-hackers(at)postgresql(dot)org;
pgsql-hackers-win32(at)postgresql(dot)org; Merlin Moncure
Subject: Re: [pgsql-hackers-win32] [HACKERS] win32 performance - fsync
question

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > However, I do prefer this patch and let Win32 have the same write
cache
> > issues as Unix, for consistency.
> 
> I agree that the open flag is more nearly O_DSYNC than O_SYNC.
> 
> ISTM Windows' idea of fsync is quite different from Unix's and
therefore
> we should name the wal_sync_method that invokes it something different
> than fsync.  "write_through" or some such?  We already have precedent
> that not all wal_sync_method values are available on all platforms.
> 
> I'm not taking a position on which the default should be ...

Yes, I am thinking that too.  I hesistated because it adds yet another
sync method, and we have to document it works only on Win32, but I see
no better solution.

I am going to let the Win32 users mostly vote on what the default should
be.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania
19073

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

pgsql-hackers by date

Next:From: Andrew DunstanDate: 2005-03-17 19:27:54
Subject: Windows, gettext/libintl, pg_sprintf and friends
Previous:From: Peter EisentrautDate: 2005-03-17 19:17:35
Subject: Re: PHP stuff

pgsql-hackers-win32 by date

Next:From: Tom LaneDate: 2005-03-17 19:36:19
Subject: Re: [pgsql-hackers-win32] win32 performance - fsync question
Previous:From: Tom LaneDate: 2005-03-17 19:02:29
Subject: Re: [pgsql-hackers-win32] win32 performance - fsync question

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group