7
7
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
8
8
* Portions Copyright (c) 1994, Regents of the University of California
9
9
*
10
- * $Id: htup.h,v 1.45 2001/01/24 19:43:19 momjian Exp $
10
+ * $Id: htup.h,v 1.46 2001/02/21 19:07:04 momjian Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
32
32
#define MaxHeapAttributeNumber 1600 /* 8 * 200 */
33
33
34
34
/*
35
- * to avoid wasting space, the attributes should be layed out in such a
35
+ * This is the on-disk copy of the tuple.
36
+ *
37
+ * To avoid wasting space, the attributes should be layed out in such a
36
38
* way to reduce structure padding.
37
39
*/
38
40
typedef struct HeapTupleHeaderData
@@ -51,12 +53,12 @@ typedef struct HeapTupleHeaderData
51
53
52
54
uint16 t_infomask ; /* various infos */
53
55
54
- uint8 t_hoff ; /* sizeof tuple header */
56
+ uint8 t_hoff ; /* sizeof() tuple header */
55
57
56
58
/* ^ - 31 bytes - ^ */
57
59
58
60
bits8 t_bits [MinHeapTupleBitmapSize / 8 ];
59
- /* bit map of domains */
61
+ /* bit map of NULLs */
60
62
61
63
/* MORE DATA FOLLOWS AT END OF STRUCT */
62
64
} HeapTupleHeaderData ;
@@ -174,6 +176,8 @@ typedef struct xl_heap_clean
174
176
#define FirstLowInvalidHeapAttributeNumber (-8)
175
177
176
178
/*
179
+ * This is the in-memory copy of the tuple.
180
+ *
177
181
* This new HeapTuple for version >= 6.5 and this is why it was changed:
178
182
*
179
183
* 1. t_len moved off on-disk tuple data - ItemIdData is used to get len;
@@ -190,10 +194,10 @@ typedef struct xl_heap_clean
190
194
typedef struct HeapTupleData
191
195
{
192
196
uint32 t_len ; /* length of *t_data */
193
- ItemPointerData t_self ; /* SelfItemPointer */
197
+ ItemPointerData t_self ; /* SelfItemPointer */
194
198
Oid t_tableOid ; /* table the tuple came from */
195
- MemoryContext t_datamcxt ; /* mcxt in which allocated */
196
- HeapTupleHeader t_data ; /* -> tuple header and data */
199
+ MemoryContext t_datamcxt ; /* memory context of allocation */
200
+ HeapTupleHeader t_data ; /* -> tuple header and data */
197
201
} HeapTupleData ;
198
202
199
203
typedef HeapTupleData * HeapTuple ;
0 commit comments