@@ -263,9 +263,8 @@ typedef struct BTMetaPageData
263
263
* offset field only stores the number of columns/attributes when the
264
264
* INDEX_ALT_TID_MASK bit is set, which doesn't count the trailing heap
265
265
* TID column sometimes stored in pivot tuples -- that's represented by
266
- * the presence of BT_HEAP_TID_ATTR. The INDEX_ALT_TID_MASK bit in t_info
267
- * is always set on BTREE_VERSION 4. BT_HEAP_TID_ATTR can only be set on
268
- * BTREE_VERSION 4.
266
+ * the presence of BT_PIVOT_HEAP_TID_ATTR. The INDEX_ALT_TID_MASK bit in
267
+ * t_info is always set on BTREE_VERSION 4 pivot tuples.
269
268
*
270
269
* In version 3 indexes, the INDEX_ALT_TID_MASK flag might not be set in
271
270
* pivot tuples. In that case, the number of key columns is implicitly
@@ -296,7 +295,7 @@ typedef struct BTMetaPageData
296
295
/* Item pointer offset bits */
297
296
#define BT_RESERVED_OFFSET_MASK 0xF000
298
297
#define BT_N_KEYS_OFFSET_MASK 0x0FFF
299
- #define BT_HEAP_TID_ATTR 0x1000
298
+ #define BT_PIVOT_HEAP_TID_ATTR 0x1000
300
299
301
300
/* Get/set downlink block number in pivot tuple */
302
301
#define BTreeTupleGetDownLink (itup ) \
@@ -347,7 +346,7 @@ typedef struct BTMetaPageData
347
346
#define BTreeTupleGetHeapTID (itup ) \
348
347
( \
349
348
(itup)->t_info & INDEX_ALT_TID_MASK && \
350
- (ItemPointerGetOffsetNumberNoCheck(&(itup)->t_tid) & BT_HEAP_TID_ATTR ) != 0 ? \
349
+ (ItemPointerGetOffsetNumberNoCheck(&(itup)->t_tid) & BT_PIVOT_HEAP_TID_ATTR ) != 0 ? \
351
350
( \
352
351
(ItemPointer) (((char *) (itup) + IndexTupleSize(itup)) - \
353
352
sizeof(ItemPointerData)) \
@@ -362,7 +361,7 @@ typedef struct BTMetaPageData
362
361
do { \
363
362
Assert((itup)->t_info & INDEX_ALT_TID_MASK); \
364
363
ItemPointerSetOffsetNumber(&(itup)->t_tid, \
365
- ItemPointerGetOffsetNumberNoCheck(&(itup)->t_tid) | BT_HEAP_TID_ATTR ); \
364
+ ItemPointerGetOffsetNumberNoCheck(&(itup)->t_tid) | BT_PIVOT_HEAP_TID_ATTR ); \
366
365
} while(0)
367
366
368
367
/*
0 commit comments