Re: Block-level CRC checks

Поиск
Список
Период
Сортировка
Искать
От
Zdenek Kotala
Тема
Re: Block-level CRC checks
Дата
Msg-id
4909D96D.8000505@sun.com
Ответ на
Список
Дерево обсуждения
Re: Block-level CRC checks Paul Schlie <schlie@comcast.net>
Re: Block-level CRC checks Gregory Stark <stark@enterprisedb.com>
Re: Block-level CRC checks Paul Schlie <schlie@comcast.net>
Tom Lane napsal(a):
> Zdenek Kotala  writes:
>> By the way, do you need CRC as a first page member? Is it for future development 
>> like CLOG integration into buffers? Why not put it on the end as and mark it as 
>> a special? It will reduce space requirement when CRC is not enabled.
> 
> ... and make life tremendously more complex for indexes, 

Indexes  uses PageGetSpecial macro and they live with them and PageInit could do  correct placement. Only problem are assert macros and extra check which 
verifies correct size of special.

> plus turning
> CRC checking on or off on-the-fly would be problematic.  

Yeah, it is problem.

> I think Alvaro
> has the right idea: just put the field there all the time.

Agree.
Zdenek



-- 
Zdenek Kotala              Sun Microsystems
Prague, Czech Republic     http://sun.com/postgresql


В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
Сообщение: Re: Block-level CRC checks
От: Alvaro Herrera
Дата:
Сообщение: Re: Block-level CRC checks
FAQ