77 * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
88 * Portions Copyright (c) 1994, Regents of the University of California
99 *
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 $
1111 *
1212 *-------------------------------------------------------------------------
1313 */
@@ -87,6 +87,8 @@ typedef struct xl_heap_delete
8787xl_heaptid dtid ;/* deleted tuple id */
8888}xl_heap_delete ;
8989
90+ #define SizeOfHeapDelete (offsetof(xl_heaptid, tid) + SizeOfIptrData))
91+
9092/* This is what we need to know about insert - 26 + data */
9193typedef struct xl_heap_insert
9294{
@@ -99,6 +101,8 @@ typedef struct xl_heap_insert
99101/* TUPLE DATA FOLLOWS AT END OF STRUCT */
100102}xl_heap_insert ;
101103
104+ #define SizeOfHeapInsert (offsetof(xl_heap_insert, mask) + sizeof(uint8))
105+
102106/* This is what we need to know about update - 28 + data */
103107typedef struct xl_heap_update
104108{
@@ -111,13 +115,17 @@ typedef struct xl_heap_update
111115/* NEW TUPLE DATA FOLLOWS AT END OF STRUCT */
112116}xl_heap_update ;
113117
118+ #define SizeOfHeapUpdate (offsetof(xl_heap_update, mask) + sizeof(uint8))
119+
114120/* This is what we need to know about tuple move - 24 bytes */
115121typedef struct xl_heap_move
116122{
117123xl_heaptid ftid ;/* moved from */
118124ItemPointerData ttid ;/* moved to */
119125}xl_heap_move ;
120126
127+ #define SizeOfHeapMove (offsetof(xl_heap_move, ttid) + SizeOfIptrData))
128+
121129/* end of XLOG stuff */
122130
123131#endif /* XLOG */