Simplify declaration of memcpy target

The existing one is understandable failing on (some?) 32-bit platforms.

Reported-by: Tomas Vondra <tomas@vondra.me>
Suggested-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/1c197f2d-49a2-4830-8dde-55867218b62d@vondra.me
This commit is contained in:
Álvaro Herrera 2026-04-08 22:58:56 +02:00
parent b364828f82
commit 2cff363715
No known key found for this signature in database
GPG key ID: 1C20ACB9D5C564AE

View file

@ -2710,11 +2710,7 @@ restore_tuple(BufFile *file, Relation relation, TupleTableSlot *slot)
{
CompactAttribute *attr = TupleDescCompactAttr(desc, i);
varlena *varlen;
union
{
alignas(int32) varlena hdr;
char data[sizeof(void *)];
} chunk_header;
uint64 chunk_header;
void *value;
Size varlensz;