xl_heap_header alignment?

Поиск
Список
Период
Сортировка
От Antonin Houska
Тема xl_heap_header alignment?
Дата
Msg-id 21643.1595353537@antos
обсуждение исходный текст
Ответы Re: xl_heap_header alignment?  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
I don't quite understand this part of the comment of the xl_heap_header
structure:

 * NOTE: t_hoff could be recomputed, but we may as well store it because
 * it will come for free due to alignment considerations.

What are the alignment considerations? The WAL code does not appear to assume
any alignment, and therefore it uses memcpy() to copy the structure into a
local variable before accessing its fields. For example, heap_xlog_insert().

-- 
Antonin Houska
Web: https://www.cybertec-postgresql.com



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_subscription.subslotname is wrongly marked NOT NULL
Следующее
От: Andres Freund
Дата:
Сообщение: Re: xl_heap_header alignment?