Re: sync()

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема Re: sync()
Дата
Msg-id 20030108.155152.70220703.t-ishii@sra.co.jp
обсуждение исходный текст
Ответ на Re: sync()  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: sync()  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: sync()
Следующее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: psql and readline