Re: pgsql: Fix portability issue in new jsonbsubs code. - Mailing list pgsql-committers

From Alexander Korotkov
Subject Re: pgsql: Fix portability issue in new jsonbsubs code.
Date
Msg-id CAPpHfdsn-WRQYp+ivSqsuEi4_mbbJsoi-78uGh8XfabLKR7agQ@mail.gmail.com
Whole thread Raw
In response to pgsql: Fix portability issue in new jsonbsubs code.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-committers
On Mon, Feb 1, 2021 at 10:04 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Fix portability issue in new jsonbsubs code.
>
> On machines where sizeof(Datum) > sizeof(Oid) (that is, any 64-bit
> platform), the previous coding would compute a misaligned
> workspace->index pointer if nupper is odd.  Architectures where
> misaligned access is a hard no-no would then fail.  This appears
> to explain why thorntail is unhappy but other buildfarm members
> are not.

Thank you for fixing this!

------
Regards,
Alexander Korotkov



pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Introduce --with-ssl={openssl} as a configure option
Next
From: Alexander Korotkov
Date:
Subject: pgsql: Get rid of unnecessary memory allocation in jsonb_subscript_assi