]> granicus.if.org Git - postgresql/commit
MAXALIGN the target address where we store flattened value.
authorAmit Kapila <akapila@postgresql.org>
Wed, 3 Oct 2018 03:34:54 +0000 (09:04 +0530)
committerAmit Kapila <akapila@postgresql.org>
Wed, 3 Oct 2018 03:45:03 +0000 (09:15 +0530)
commit9bc9f72b28fe4d2c22244f3443af8f1b98b56474
tree2688cc240c37bdf0b2f1fa26b8a779c5e9f72786
parenta33245a8537f8ecbd2cd50c67b2b234f65e8fe14
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