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

From Andres Freund
Subject Re: Fix misaligned access of ItemPointerData on ARM
Date
Msg-id 20150521205338.GC2028@alap3.anarazel.de
Whole thread Raw
In response to Re: Fix misaligned access of ItemPointerData on ARM  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Fix misaligned access of ItemPointerData on ARM  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 2015-05-21 16:49:27 -0400, Tom Lane wrote:
> I considered also adding a Static_assert about sizeof(ItemIdData),
> but I'm afraid that compilers that don't support these pragmas
> probably don't support Static_assert either, so it's not clear
> that that would catch anything.

I think your fallback for static assert should pretty much always work?
With an ugly message, but work nonetheless?

Andres



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: INSERT ... ON CONFLICT DO UPDATE with _any_ constraint
Next
From: Heikki Linnakangas
Date:
Subject: Re: GiST KNN Crasher