Re: IndexTupleDSize macro seems redundant - Mailing list pgsql-hackers

From Andres Freund
Subject Re: IndexTupleDSize macro seems redundant
Date
Msg-id 20180111183506.hdwyxoeexqp3dcwd@alap3.anarazel.de
Whole thread Raw
In response to Re: IndexTupleDSize macro seems redundant  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 2018-01-11 13:26:27 -0500, Tom Lane wrote:
> I wonder whether there is a way to get alignment traps on Intel-type
> hardware.  It's getting less and less likely that most hackers are
> developing on anything else, so that we don't see gotchas of this
> type until code hits the buildfarm (and even then, only if the case
> is actually exercised in regression testing).

It's possible, but a lot of code out there, including things like glibc,
assumes that unaligned accesses are fine. Therefore it's very painful to
use.

Greetings,

Andres Freund


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [HACKERS] [PATCH] Generic type subscripting
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] [PATCH] Generic type subscripting