Re: bug in pageinspect contrib modul

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: bug in pageinspect contrib modul
Дата
Msg-id 49004A87.6070406@enterprisedb.com
обсуждение исходный текст
Ответ на bug in pageinspect contrib modul  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Ответы Re: bug in pageinspect contrib modul
Список pgsql-bugs
Zdenek Kotala wrote:
> The following code is in btreefuncs.c function GetBTPageStatistics:
>
> stat->max_avail = BLCKSZ - (BLCKSZ - phdr->pd_special +
> SizeOfPageHeaderData);
>
> I think it should be:
>
> stat->max_avail = BLCKSZ - (phdr->pd_special + SizeOfPageHeaderData);

Umm, I don't think so. pd_special is the offset to the start of the
special area, so (BLCKSZ - pd_special) is the size of the special area.

However, that max_avail field actually looks like dead code, anyway.

--
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

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

Предыдущее
От: Zdenek Kotala
Дата:
Сообщение: bug in pageinspect contrib modul
Следующее
От: Zdenek Kotala
Дата:
Сообщение: Re: Upgrade from 7.4.5 to 8.3.3