Re: Attribute Alignment

Поиск
Список
Период
Сортировка
От Michael Richards
Тема Re: Attribute Alignment
Дата
Msg-id 056701c0686a$e02d9680$0200a8c0@digitallis
обсуждение исходный текст
Ответ на More Tuple Madness  ("Michael Richards" <miker@interchange.ca>)
Ответы Re: Attribute Alignment  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Is this alignment relative to the beginning of the page or tuple, or even
the tuple data area (after the tuple header)?

-Michael

> "Michael Richards" <miker@interchange.ca> writes:
> > The alignment seems to be wrong for type CHAR(1):
>
> No, the alignment is fine.  A field's align constraint says where it has
> to start, not where the next field has to start.  gender starts on a
> 4-byte boundary and is 5 bytes long, then we have one byte wasted for
> alignment of yearofbirth, then yearofbirth starts on a 2-byte boundary.
> Everyone's happy.
>
> regards, tom lane



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Manual changes for ALTER TABLE OWNER
Следующее
От: Oleg Bartunov
Дата:
Сообщение: Who is a maintainer of GiST code ?