Re: disallow big-endian on aarch64 - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: disallow big-endian on aarch64
Date
Msg-id aN7jwyUDezcvc8Ea@nathan
Whole thread Raw
In response to Re: disallow big-endian on aarch64  (Tomas Vondra <tomas@vondra.me>)
Responses Re: disallow big-endian on aarch64
List pgsql-hackers
On Thu, Oct 02, 2025 at 10:29:39PM +0200, Tomas Vondra wrote:
> I don't follow the reasoning. If there are no aarch64 platforms running
> in big-endian mode (at least not supported ones), then how would you
> even build Postgres in such environment?
> 
> Also, what's the benefit of disabling it? Is it about disabling
> something we can't meaningfully test (even though we still support other
> big-endian platforms, right?). Or does it affect the SIMD stuff somehow?

The benefit is that we can safely assume little-endian in AAarch64-specific
code, and on the off-chance that someone tries to build Postgres in an
AArch64/big-endian environment, we aren't pretending to support it.  I'd
expect this to affect almost nobody in practice, which is why I'm proposing
that we just disallow it completely.  As you noted, we can't meaningfully
test it, anyway.

I'm not proposing that we remove big-endian support from any other
platforms besides AArch64.

-- 
nathan



pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: Teaching planner to short-circuit empty UNION/EXCEPT/INTERSECT inputs
Next
From: Tom Lane
Date:
Subject: Re: psql: Count all table footer lines in pager setup