RE: Proposed WAL changes

Поиск
Список
Период
Сортировка
От Mikheev, Vadim
Тема RE: Proposed WAL changes
Дата
Msg-id 8F4C99C66D04D4118F580090272A7A234D32FB@sectorbase1.sectorbase.com
обсуждение исходный текст
Ответ на Proposed WAL changes  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Proposed WAL changes  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> > But what can be done if fsync returns before pages flushed?
> 
> When you write out critical information, you keep earlier versions of
> it.  On startup, if the critical information is corrupt, you use the
> earlier versions of it.  This helps protect against the scenario I
> mentioned: a few disk blocks may not have been written when the power
> goes out.
> 
> My impression is that that is what Tom is doing with his patches.

If fsync may return before data *actually* flushed then you may have
unlogged data page changes which breakes WAL rule and means corrupted
(inconsistent) database without ANY ABILITY TO RECOVERY TO CONSISTENT
STATE. Now please explain me how saving positions of two checkpoints
(what Tom is doing) can help here?

Vadim


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

Предыдущее
От: Hiroshi Inoue
Дата:
Сообщение: Re: AW: Proposed WAL changes
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Proposed WAL changes