Re: Block-level CRC checks

Поиск
Список
Период
Сортировка
От Aidan Van Dyk
Тема Re: Block-level CRC checks
Дата
Msg-id 20081118175431.GF31053@yugib.highrise.ca
обсуждение исходный текст
Ответ на Re: Block-level CRC checks  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Block-level CRC checks  ("Joshua D. Drake" <jd@commandprompt.com>)
Список pgsql-hackers
* Tom Lane <tgl@sss.pgh.pa.us> [081118 12:43]:
> Aidan Van Dyk <aidan@highrise.ca> writes:
> > But why can't you wal-log the hint bits from the "buffered" page.  then your
> > consitent.  At least as consistent as the original write was.
> 
> > So you're CRC ends up being:
> >    Buffer the page
> >    Calculate CRC on the buffered page
> >    WAL (in bulk) the hint bits (and maybe CRC?)
> >    write buffered page
> 
> The trouble here is to avoid repeated WAL-logging of the same hint bits.
> 
> (Alvaro's patch tried to do that by depending on another hint bit in the
> page header, but that seems unsafe if hint bit setters aren't taking
> exclusive lock.)

And I know it's extra IO.  That's why I started the whole thing with a question
along the lines of "how much extra IO are people going to take" for the sake of
"guarenteeing" we read exactly what we wrote.

a.

-- 
Aidan Van Dyk                                             Create like a god,
aidan@highrise.ca                                       command like a king,
http://www.highrise.ca/                                   work like a slave.

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Replace plain-memory ordered array by binary tree in ts_stat() function.
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: Re: is any reason why only one columns subselect are allowed in array()?