pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Fix portability issue in new jsonbsubs code.
2+ messages / 2 participants
[nested] [flat]
* pgsql: Fix portability issue in new jsonbsubs code.
@ 2021-02-01 07:04 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: Tom Lane @ 2021-02-01 07:04 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
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.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/7c5d57caed4d8af705d0cc3131d0d8ed72b7a41d
Modified Files
--------------
src/backend/utils/adt/jsonbsubs.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: pgsql: Fix portability issue in new jsonbsubs code.
@ 2021-02-01 10:35 Alexander Korotkov <aekorotkov@gmail.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Alexander Korotkov @ 2021-02-01 10:35 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2021-02-01 10:35 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-02-01 07:04 pgsql: Fix portability issue in new jsonbsubs code. Tom Lane <tgl@sss.pgh.pa.us>
2021-02-01 10:35 ` Alexander Korotkov <aekorotkov@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox