7
7
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
8
8
* Portions Copyright (c) 1994, Regents of the University of California
9
9
*
10
- * $Id: htup.h,v 1.32 2000/07/03 02:54:17 vadim Exp $
10
+ * $Id: htup.h,v 1.33 2000/07/04 01:49:43 vadim Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -87,6 +87,8 @@ typedef struct xl_heap_delete
87
87
xl_heaptid dtid ; /* deleted tuple id */
88
88
} xl_heap_delete ;
89
89
90
+ #define SizeOfHeapDelete (offsetof(xl_heaptid, tid) + SizeOfIptrData))
91
+
90
92
/* This is what we need to know about insert - 26 + data */
91
93
typedef struct xl_heap_insert
92
94
{
@@ -99,6 +101,8 @@ typedef struct xl_heap_insert
99
101
/* TUPLE DATA FOLLOWS AT END OF STRUCT */
100
102
} xl_heap_insert ;
101
103
104
+ #define SizeOfHeapInsert (offsetof(xl_heap_insert, mask) + sizeof(uint8))
105
+
102
106
/* This is what we need to know about update - 28 + data */
103
107
typedef struct xl_heap_update
104
108
{
@@ -111,13 +115,17 @@ typedef struct xl_heap_update
111
115
/* NEW TUPLE DATA FOLLOWS AT END OF STRUCT */
112
116
} xl_heap_update ;
113
117
118
+ #define SizeOfHeapUpdate (offsetof(xl_heap_update, mask) + sizeof(uint8))
119
+
114
120
/* This is what we need to know about tuple move - 24 bytes */
115
121
typedef struct xl_heap_move
116
122
{
117
123
xl_heaptid ftid ; /* moved from */
118
124
ItemPointerData ttid ; /* moved to */
119
125
} xl_heap_move ;
120
126
127
+ #define SizeOfHeapMove (offsetof(xl_heap_move, ttid) + SizeOfIptrData))
128
+
121
129
/* end of XLOG stuff */
122
130
123
131
#endif /* XLOG */
0 commit comments