MAXALIGN the target address where we store flattened value.
authorAmit Kapila
Wed, 3 Oct 2018 04:08:07 +0000 (09:38 +0530)
committerAmit Kapila
Wed, 3 Oct 2018 04:08:07 +0000 (09:38 +0530)
commit9718c93f532c3cfb6c39679452149dba711d12af
tree7dab485d32b48945c81c8855ae0d2cf545d22fee
parent6483381a4d0b7aab74e71579d92daf490cc54fb2
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
src/backend/utils/adt/datum.c
src/test/regress/expected/select_parallel.out
src/test/regress/sql/select_parallel.sql