Re: sync()

From: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
To: tgl(at)sss(dot)pgh(dot)pa(dot)us
Cc: pgman(at)candle(dot)pha(dot)pa(dot)us, pgsql-hackers(at)postgresql(dot)org
Subject: Re: sync()
Date: 2003-01-08 06:51:52
Message-ID: 20030108.155152.70220703.t-ishii@sra.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > Are you saying that fsync() might not wait untill the IO completes?
>
> No, I said that sync() might not. Read the man pages. HPUX's man
> page for sync(2) says
>
> sync() causes all information in memory that should be on disk to be
> written out.
> ...
> The writing, although scheduled, is not necessarily complete upon
> return from sync.

I'm just wondering why we do not use fsync() to flush data/index
pages.
--
Tatsuo Ishii

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2003-01-08 06:55:54 psql and readline
Previous Message Tom Lane 2003-01-08 06:46:57 Re: sync()