mirror of
https://github.com/postgres/postgres.git
synced 2026-04-09 02:56:13 -04: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:
parent
b364828f82
commit
2cff363715
1 changed files with 1 additions and 5 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue