pgsql: Fix new test case to work on (some?) big-endian architectures.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix new test case to work on (some?) big-endian architectures.
Date: 2023-03-22 21:14:24
Message-ID: E1pf5mq-004t62-DT@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix new test case to work on (some?) big-endian architectures.

Use of pack("L") gets around the basic endian problem, but it doesn't
deal with the fact that the order of the bitfields within the struct
may differ. This patch fixes it to work with gcc on NetBSD/macppc,
but I wonder whether that will be enough --- in principle, there
could be four different combinations of bitpatterns needed here.

Discussion: https://postgr.es/m/1650745.1679513221@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c75a623304bc361b4456f916d455ea175ffd8055

Modified Files
--------------
src/bin/pg_amcheck/t/004_verify_heapam.pl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2023-03-22 21:27:25 pgsql: Evade extra table_tuple_fetch_row_version() in ExecUpdate()/Exec
Previous Message Tom Lane 2023-03-22 20:37:45 pgsql: Fix initdb's handling of min_wal_size and max_wal_size.