AW: CRCs (was Re: [GENERAL] Re: Loading optimization)

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB
Тема AW: CRCs (was Re: [GENERAL] Re: Loading optimization)
Дата
Msg-id 11C1E6749A55D411A9670001FA6879633681AF@sdexcsrv1.f000.d0188.sd.spardat.at
обсуждение исходный текст
Список pgsql-hackers
> A disk-block CRC would detect partially written blocks (ie, power drops
> after disk has written M of the N sectors in a block).  The disk's own
> checks will NOT consider this condition a failure.

But physical log recovery will rewrite every page that was changed
after last checkpoint, thus this is not an issue anymore.

>  I'm not convinced
> that WAL will reliably detect it either (Vadim?).  Certainly WAL will
> not help for corruption caused by external agents, away from any updates
> that are actually being performed/logged.

The external agent (if malvolent) could write a correct CRC anyway.
If on the other hand the agent writes complete garbage, vacuum will notice.

Andreas


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

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: RE: AW: Re: GiST for 7.1 !!
Следующее
От: Oleg Bartunov
Дата:
Сообщение: RE: AW: Re: GiST for 7.1 !!