Re: Fix misaligned access of ItemPointerData on ARM

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Fix misaligned access of ItemPointerData on ARM
Дата
Msg-id 1005.1432236840@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Fix misaligned access of ItemPointerData on ARM  (Piotr Stefaniak <postgres@piotr-stefaniak.me>)
Ответы Re: Fix misaligned access of ItemPointerData on ARM  (Andres Freund <andres@anarazel.de>)
Re: Fix misaligned access of ItemPointerData on ARM  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Piotr Stefaniak <postgres@piotr-stefaniak.me> writes:
> But due to how ExecRowMark struct is laid out in memory, the packed 
> struct ItemPointerData begins at an uneven offset, leading to misaligned 
> access whenever BlockIdData is set by ItemPointerSetInvalid() (and 
> likely in some other places, too).

But BlockIdData is laid out and accessed as two 16-bit fields, so there
should be no problem.  On what platform exactly do you see a failure?
        regards, tom lane



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

Предыдущее
От: Feng Tian
Дата:
Сообщение: Re: Float/Double cast to int
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: INSERT ... ON CONFLICT DO UPDATE with _any_ constraint