summaryrefslogtreecommitdiff
path: root/src/include/access
diff options
context:
space:
mode:
authorTom Lane2018-03-01 00:25:54 +0000
committerTom Lane2018-03-01 00:25:54 +0000
commitd79e7e92bf2a44415e1dcbd74274eb79852fc885 (patch)
tree19d76d46e6e61dbad53fd5ae0bd787debac372a7 /src/include/access
parentd3b851e9a3c9f994e78ba9ec4e11e4eae0c72ec7 (diff)
Remove redundant IndexTupleDSize macro.
Use IndexTupleSize everywhere, instead. Also, remove IndexTupleSize's internal typecast, as that's not really needed and might mask coding errors. Change some pointer variable datatypes in the call sites to compensate for that and make it clearer what we're assuming. Ildar Musin, Robert Haas, Stephen Frost Discussion: https://postgr.es/m/0274288e-9e88-13b6-c61c-7b36928bf221@postgrespro.ru
Diffstat (limited to 'src/include/access')
-rw-r--r--src/include/access/itup.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/include/access/itup.h b/src/include/access/itup.h
index 0ffa91d6861..9be3442c66d 100644
--- a/src/include/access/itup.h
+++ b/src/include/access/itup.h
@@ -67,8 +67,7 @@ typedef IndexAttributeBitMapData * IndexAttributeBitMap;
#define INDEX_VAR_MASK 0x4000
#define INDEX_NULL_MASK 0x8000
-#define IndexTupleSize(itup) ((Size) (((IndexTuple) (itup))->t_info & INDEX_SIZE_MASK))
-#define IndexTupleDSize(itup) ((Size) ((itup).t_info & INDEX_SIZE_MASK))
+#define IndexTupleSize(itup) ((Size) ((itup)->t_info & INDEX_SIZE_MASK))
#define IndexTupleHasNulls(itup) ((((IndexTuple) (itup))->t_info & INDEX_NULL_MASK))
#define IndexTupleHasVarwidths(itup) ((((IndexTuple) (itup))->t_info & INDEX_VAR_MASK))