pgsql: MAXALIGN the target address where we store flattened value.

From: Amit Kapila <akapila(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: MAXALIGN the target address where we store flattened value.
Date: 2018-10-03 04:28:11
Message-ID: E1g7Ylf-0007AP-FY@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9bc9f72b28fe4d2c22244f3443af8f1b98b56474

Modified Files
--------------
src/backend/utils/adt/datum.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Masahiko Sawada 2018-10-03 07:37:29 Re: pgsql: Improve autovacuum logging for aggressive and anti-wraparound ru
Previous Message Andrew Dunstan 2018-10-02 20:57:36 pgsql: Don't build static libraries on Cygwin