Re: Block-level CRC checks
От | Gregory Stark |
---|---|
Тема | Re: Block-level CRC checks |
Дата | |
Msg-id | 87tzauay5e.fsf@oxford.xeocode.com обсуждение исходный текст |
Ответ на | Re: Block-level CRC checks (Alvaro Herrera <alvherre@commandprompt.com>) |
Ответы |
Re: Block-level CRC checks
|
Список | pgsql-hackers |
Alvaro Herrera <alvherre@commandprompt.com> writes: > Ah, actually there's another alternative -- leave the checksum on its > current position (start of struct) and move other members below > pg_pagesize_version (leaning towards pd_tli and pd_flags). That'd leave > the page version in the same position. I don't understand why the position of anything matters here. Look at TCP packets for instance, the checksum is not at the beginning or end of anything. The CRC is chosen such that if you CRC the resulting packet including the CRC you get a CRC of 0. That can be done for whatever offset the CRC appears at I believe. -- Gregory Stark EnterpriseDB http://www.enterprisedb.com Ask me about EnterpriseDB's 24x7 Postgres support!
В списке pgsql-hackers по дате отправления: