Re: page macros cleanup

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: page macros cleanup
Дата
Msg-id 486E070D.8010101@enterprisedb.com
обсуждение исходный текст
Ответ на Re: page macros cleanup  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Ответы Re: page macros cleanup  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Список pgsql-patches
Zdenek Kotala wrote:
> By my opinion first place where tuple should be placed is:
>
> MAXALIGN(SizeOfPageHeaderData + sizeof(ItemIdData))

Yeah, but we don't enforce that directly. We enforce it by MAXALIGNing
size in PageAddItem, and with the rule that special-size is MAXALIGNed.

To put it another way, it's possible that there's an unaligned amount of
free space on a page, as returned by PageGetExactFreeSpace. But since
item size is always MAXALIGNed, it's impossible to use it all.


Come to think of it, why do we require MAXALIGN alignment of tuples? I
must be missing something, but AFAICS the widest fields in
HeapTupleHeaderData are 4-bytes wide, so it should be possible to get
away with 4-byte alignment.

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

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

Предыдущее
От: Zdenek Kotala
Дата:
Сообщение: Re: page macros cleanup
Следующее
От: Zdenek Kotala
Дата:
Сообщение: Re: page macros cleanup