a bit more precise MaxOffsetNumber

Поиск
Список
Период
Сортировка
От Tomas Vondra
Тема a bit more precise MaxOffsetNumber
Дата
Msg-id 4DBCC2A0.2060406@fuzzy.cz
обсуждение исходный текст
Ответы Re: a bit more precise MaxOffsetNumber
Список pgsql-hackers
Hi,

I've been digging in the sources, and I've noticed the MaxOffsetNumber
is defined (in storage/off.h) like this
 (BLCKSZ / sizeof(ItemIdData))

I guess it might be made a bit more precise by subtracting the header
like this
 (BLCKSZ - offsetof(PageHeaderData, pd_linp) / sizeof(ItemIdData))

although the difference is negligible (2048 vs 2042 for 8kB pages).


Tomas


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

Предыдущее
От: Jaime Casanova
Дата:
Сообщение: Re: Proposed patch: Smooth replication during VACUUM FULL
Следующее
От: Tomas Vondra
Дата:
Сообщение: a bit strange btree index tuples