Re: [HACKERS] fsync -> fdatasync in backend/storage/file/fd.c - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] fsync -> fdatasync in backend/storage/file/fd.c
Date
Msg-id 199804170138.VAA05238@candle.pha.pa.us
Whole thread Raw
In response to fsync -> fdatasync in backend/storage/file/fd.c  (Michal Mosiewicz <mimo@interdata.com.pl>)
List pgsql-hackers
>
> I don't remember if it has been mentioned.
>
> Anyhow, I think that it would be nice to change fsync'es into
> fdatasync'es (of course as an autoconf-igurable option). I don't think
> it's necessary to update all file's metadata each time a file is
> flushed.
>
> I dunno where it's implemented. But it's for sure implemented in Linux.
>

We have a way of keeping proper consistency with a system sync() every
30 seconds.  See the archive.   I think it is on the short list.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] configuration patch (the last?)
Next
From: Michal Mosiewicz
Date:
Subject: Re: [HACKERS] fsync -> fdatasync in backend/storage/file/fd.c