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

Re: sync vs. fsync question

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: sync vs. fsync question
Date: 2004-06-01 01:48:59
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Christopher Kings-Lynne wrote:
> Hi,
> I had this question posed to me on IRC and I didn't know the answer.
> If all that is needed to ensure integrity is that the WAL is fsynced, 
> what is wrong with just going:
> wal_sync_method = fsync
> fsync = false

wal_sync_method is only used if fsync is true.

  Bruce Momjian                        |
  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

In response to

pgsql-hackers by date

Next:From: Christopher Kings-LynneDate: 2004-06-01 01:53:38
Subject: Re: Fast index build vs. PITR
Previous:From: Christopher Kings-LynneDate: 2004-06-01 01:45:34
Subject: sync vs. fsync question

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