File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,16 @@ static const struct am_propname am_propnames[] =
84
84
{
85
85
"can_include" , AMPROP_CAN_INCLUDE
86
86
},
87
+ /* YB properties */
88
+ {
89
+ "yb_is_for_yb_relation" , AMPROP_YB_IS_FOR_YB_RELATION
90
+ },
91
+ {
92
+ "yb_is_copartitioned" , AMPROP_YB_IS_COPARTITIONED
93
+ },
94
+ {
95
+ "yb_can_update_tuple_inplace" , AMPROP_YB_CAN_UPDATE_TUPLE_INPLACE
96
+ },
87
97
};
88
98
89
99
static IndexAMProperty
@@ -400,6 +410,16 @@ indexam_property(FunctionCallInfo fcinfo,
400
410
case AMPROP_CAN_INCLUDE :
401
411
PG_RETURN_BOOL (routine -> amcaninclude );
402
412
413
+ /* YB properties */
414
+ case AMPROP_YB_IS_FOR_YB_RELATION :
415
+ PG_RETURN_BOOL (routine -> yb_amisforybrelation );
416
+
417
+ case AMPROP_YB_IS_COPARTITIONED :
418
+ PG_RETURN_BOOL (routine -> yb_amiscopartitioned );
419
+
420
+ case AMPROP_YB_CAN_UPDATE_TUPLE_INPLACE :
421
+ PG_RETURN_BOOL (routine -> ybamcanupdatetupleinplace );
422
+
403
423
default :
404
424
PG_RETURN_NULL ();
405
425
}
Original file line number Diff line number Diff line change @@ -57,7 +57,11 @@ typedef enum IndexAMProperty
57
57
AMPROP_CAN_UNIQUE ,
58
58
AMPROP_CAN_MULTI_COL ,
59
59
AMPROP_CAN_EXCLUDE ,
60
- AMPROP_CAN_INCLUDE
60
+ AMPROP_CAN_INCLUDE ,
61
+ /* YB properties */
62
+ AMPROP_YB_IS_FOR_YB_RELATION , /* is AM for YB relations? */
63
+ AMPROP_YB_IS_COPARTITIONED , /* is AM for YB copartitioned index? */
64
+ AMPROP_YB_CAN_UPDATE_TUPLE_INPLACE /* does AM support in-place update? */
61
65
} IndexAMProperty ;
62
66
63
67
/*
You can’t perform that action at this time.
0 commit comments