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

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: mimo(at)interdata(dot)com(dot)pl (Michal Mosiewicz)
Cc: hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] fsync -> fdatasync in backend/storage/file/fd.c
Date: 1998-04-17 01:38:03
Message-ID: 199804170138.VAA05238@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)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)

In response to

Browse pgsql-hackers by date

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