Re: Fix misaligned access of ItemPointerData on ARM - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Fix misaligned access of ItemPointerData on ARM
Date
Msg-id 1005.1432236840@sss.pgh.pa.us
Whole thread Raw
In response to Fix misaligned access of ItemPointerData on ARM  (Piotr Stefaniak <postgres@piotr-stefaniak.me>)
Responses Re: Fix misaligned access of ItemPointerData on ARM
Re: Fix misaligned access of ItemPointerData on ARM
List 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 by date:

Previous
From: Feng Tian
Date:
Subject: Re: Float/Double cast to int
Next
From: Stephen Frost
Date:
Subject: Re: INSERT ... ON CONFLICT DO UPDATE with _any_ constraint