From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: MAXALIGN the target address where we store flattened value.
Date: Wed, 03 Oct 2018 04:28:11 +0000
Message-ID: <E1g7Ylf-0007AR-Fw@gemulon.postgresql.org> (raw)
MAXALIGN the target address where we store flattened value.
The API (EOH_flatten_into) that flattens the expanded value representation
expects the target address to be maxaligned. All it's usage adhere to that
principle except when serializing datums for parallel query. Fix that
usage.
Diagnosed-by: Tom Lane
Author: Tom Lane and Amit Kapila
Backpatch-through: 9.6
Discussion: https://postgr.es/m/11629.1536550032@sss.pgh.pa.us
Branch
------
REL_11_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/ca5ca25d08710d7f5aaf0e390aae284bc594a6da
Modified Files
--------------
src/backend/utils/adt/datum.c | 13 +++++++++++-
src/test/regress/expected/select_parallel.out | 29 ++++++++++++++++++++++++++-
src/test/regress/sql/select_parallel.sql | 18 ++++++++++++++++-
3 files changed, 57 insertions(+), 3 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: akapila@postgresql.org
Subject: Re: pgsql: MAXALIGN the target address where we store flattened value.
In-Reply-To: <E1g7Ylf-0007AR-Fw@gemulon.postgresql.org>
References: <E1g7Ylf-0007AR-Fw@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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