Re: 9.2.3 crashes during archive recovery

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 9.2.3 crashes during archive recovery
Дата
Msg-id 11565.1360784264@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: 9.2.3 crashes during archive recovery  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Список pgsql-hackers
Heikki Linnakangas <hlinnakangas@vmware.com> writes:
> The problem we're trying to solve is determining how much WAL needs to 
> be replayed until the database is consistent again. In crash recovery, 
> the answer is "all of it". That's why the CRC in the WAL is essential; 
> it's required to determine where the WAL ends. But if we had some other 
> mechanism, like if we updated minRecoveryPoint after every XLogFlush() 
> like Simon suggested, we wouldn't necessarily need the CRC to detect end 
> of WAL (not that I'd suggest removing it anyway), and we could throw an 
> error if there is corrupt bit somewhere in the WAL before the true end 
> of WAL.

Meh.  I think that would be disastrous from both performance and
reliability standpoints.  (Performance because the whole point of WAL is
to commit with only one disk write in one place, and reliability because
of greatly increasing the number of writes to the utterly-critical
pg_control file.)
        regards, tom lane



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

Предыдущее
От: Daniel Farina
Дата:
Сообщение: Re: Fractal tree indexing
Следующее
От: Tom Lane
Дата:
Сообщение: Re: 9.2.3 crashes during archive recovery