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

Re: fsync or fdatasync

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Gaetano Mendola <mendola(at)bigfoot(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: fsync or fdatasync
Date: 2002-09-16 16:46:22
Message-ID: 200209161646.g8GGkNd18398@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-admin
Gaetano Mendola wrote:
> 
> "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us> wrote in message
> news:200209101540(dot)g8AFeOo21086(at)candle(dot)pha(dot)pa(dot)us(dot)(dot)(dot)
> >
> > The original poster was wrong about the default.
> >
> > We use fdatasync where available, and fsync when it is not.  We also use
> > O_SYNC on open if it is available.
> 
> 
> The original poster is me! :-)
> 
> I was pointed to a document ( that I don't find anymore )
> where I understood that the default was fsync.
> I'm sorry for the little flame.... :-(
> 
> 
> PS. It is in the plans to use raw disks ?

No plans.  Raw disk is only marginally faster and a lot more
complicated.  See the TODO performance link for details.

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

In response to

pgsql-admin by date

Next:From: Thomas BauerDate: 2002-09-16 18:01:02
Subject: compiling pgsql
Previous:From: Stephan SzaboDate: 2002-09-16 15:12:24
Subject: Re: [BUGS] Problem

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