Re: [HACKERS] PATCH: pageinspect / add page_checksum andbt_page_items(bytea)
В списке pgsql-hackers по дате отправления:
| От | Alvaro Herrera |
|---|---|
| Тема | Re: [HACKERS] PATCH: pageinspect / add page_checksum andbt_page_items(bytea) |
| Дата | |
| Msg-id | 20170314120721.pprxhapoqaboj7wc@alvherre.pgsql обсуждение |
| Ответ на | Re: [HACKERS] PATCH: pageinspect / add page_checksum and bt_page_items(bytea) (Ashutosh Sharma <ashu.coek88@gmail.com>) |
| Список | pgsql-hackers |
Ashutosh Sharma wrote: > Yes. But, as i said earlier I am getting negative checksum value for > page_header as well. Isn't that wrong. For eg. When I debug the > following query, i could pd_checksum value as '40074' in gdb where > page_header shows it as '-25462'. Yes; the point is that this is a pre-existing problem, not one being introduced with this patch. In SQL we don't have unsigned types, and we have historically chosen a type with the same width instead of one with enough width to represent all possible unsigned values. IMO this patch is doing the right thing; if in the future we want to change that decision, that's fine but it's a separate patch. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера