mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Use FLEXIBLE_ARRAY_MEMBER for HeapTupleHeaderData.t_bits[].
This requires changing quite a few places that were depending on sizeof(HeapTupleHeaderData), but it seems for the best. Michael Paquier, some adjustments by me
This commit is contained in:
@@ -28,8 +28,12 @@ typedef struct ReorderBufferTupleBuf
|
||||
|
||||
/* tuple, stored sequentially */
|
||||
HeapTupleData tuple;
|
||||
HeapTupleHeaderData header;
|
||||
char data[MaxHeapTupleSize];
|
||||
union
|
||||
{
|
||||
HeapTupleHeaderData header;
|
||||
char data[MaxHeapTupleSize];
|
||||
double align_it; /* ensure t_data is MAXALIGN'd */
|
||||
} t_data;
|
||||
} ReorderBufferTupleBuf;
|
||||
|
||||
/*
|
||||
@@ -77,7 +81,7 @@ typedef struct ReorderBufferChange
|
||||
RelFileNode relnode;
|
||||
|
||||
/* no previously reassembled toast chunks are necessary anymore */
|
||||
bool clear_toast_afterwards;
|
||||
bool clear_toast_afterwards;
|
||||
|
||||
/* valid for DELETE || UPDATE */
|
||||
ReorderBufferTupleBuf *oldtuple;
|
||||
|
Reference in New Issue
Block a user