aboutsummaryrefslogtreecommitdiff
path: root/src/include/access/htup.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/access/htup.h')
-rw-r--r--src/include/access/htup.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/include/access/htup.h b/src/include/access/htup.h
index 4665fe60bb7..cf8f9dddcb6 100644
--- a/src/include/access/htup.h
+++ b/src/include/access/htup.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: htup.h,v 1.32 2000/07/03 02:54:17 vadim Exp $
+ * $Id: htup.h,v 1.33 2000/07/04 01:49:43 vadim Exp $
*
*-------------------------------------------------------------------------
*/
@@ -87,6 +87,8 @@ typedef struct xl_heap_delete
xl_heaptid dtid; /* deleted tuple id */
} xl_heap_delete;
+#define SizeOfHeapDelete (offsetof(xl_heaptid, tid) + SizeOfIptrData))
+
/* This is what we need to know about insert - 26 + data */
typedef struct xl_heap_insert
{
@@ -99,6 +101,8 @@ typedef struct xl_heap_insert
/* TUPLE DATA FOLLOWS AT END OF STRUCT */
} xl_heap_insert;
+#define SizeOfHeapInsert (offsetof(xl_heap_insert, mask) + sizeof(uint8))
+
/* This is what we need to know about update - 28 + data */
typedef struct xl_heap_update
{
@@ -111,6 +115,8 @@ typedef struct xl_heap_update
/* NEW TUPLE DATA FOLLOWS AT END OF STRUCT */
} xl_heap_update;
+#define SizeOfHeapUpdate (offsetof(xl_heap_update, mask) + sizeof(uint8))
+
/* This is what we need to know about tuple move - 24 bytes */
typedef struct xl_heap_move
{
@@ -118,6 +124,8 @@ typedef struct xl_heap_move
ItemPointerData ttid; /* moved to */
} xl_heap_move;
+#define SizeOfHeapMove (offsetof(xl_heap_move, ttid) + SizeOfIptrData))
+
/* end of XLOG stuff */
#endif /* XLOG */