Andres Freund <andres@anarazel.de> writes:
> Hm, that should be doable with something like
> #if MAXIMUM_ALIGNOF > 4 && SIZEOF_VOID_P == 4
> which'd probably be better documentation than a macro that hides this
> (arguing internally whether SIZEOF_VOID_P or SIZEOF_SIZE_T) is better.
Not sure either, but suggest we add a StaticAssert asserting there's no
padding; something along the lines ofoffsetof(AllocSetChunkHeader, context) + sizeof(MemoryContext) ==
MAXALIGN(sizeof(AllocSetChunkHeader))
regards, tom lane