Re: Background writer process

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Background writer process
Дата
Msg-id 3094.1068835637@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Background writer process  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Background writer process  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Shridhar Daithankar wrote:
>> Having fsync for regular data files and sync for WAL segment a comfortable 
>> compramise?  Or this is going to use fsync for all of them.

> I think we still need sync() for WAL because sometimes backends are
> going to have to write their own buffers, and we don't want them using
> fsync or it will be very slow.

sync() for WAL is a complete nonstarter, because it gives you no
guarantees at all about whether the write has occurred.  I don't really
care what you say about speed; this is a correctness point.
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: cvs head? initdb?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Background writer process