Andres Freund <and...@anarazel.de> writes: > On 2022-08-29 11:43:14 -0400, Tom Lane wrote: >> I think adding a padding field to SlabBlock would be a less messy >> solution than your patch.
> That just seems to invite the same problem happening again later and it's > harder to ensure that the padding is correct across platforms. Yeah, I just tried and failed to write a general padding computation --- you can't use sizeof() in the #if, which makes it a lot more fragile than I was expecting. Tomas' way is probably the best. regards, tom lane