]> granicus.if.org Git - postgresql/commit
MAXALIGN the target address where we store flattened value.
authorAmit Kapila <akapila@postgresql.org>
Wed, 3 Oct 2018 04:24:01 +0000 (09:54 +0530)
committerAmit Kapila <akapila@postgresql.org>
Wed, 3 Oct 2018 04:24:01 +0000 (09:54 +0530)
commitdca44d07c585637d8245a46a29be732241fa40bf
tree8a371a4320f4dba0ca2008dcb61766b16bd2da3a
parentd5895717e000f3b6a89a9e290a47e9edb64eea28
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