mirror of
https://github.com/postgres/postgres.git
synced 2026-10-23 13:29:09 +03:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user