@@ -58,7 +58,7 @@ trueConsistentFn(GinScanKey key)
5858 key -> recheckCurItem = false;
5959 return true;
6060}
61- static GinLogicValue
61+ static GinTernaryValue
6262trueTriConsistentFn (GinScanKey key )
6363{
6464 return GIN_TRUE ;
@@ -91,17 +91,18 @@ directBoolConsistentFn(GinScanKey key)
9191/*
9292 * A helper function for calling a native ternary logic consistent function.
9393 */
94- static GinLogicValue
94+ static GinTernaryValue
9595directTriConsistentFn (GinScanKey key )
9696{
97- return DatumGetGinLogicValue (FunctionCall7Coll (key -> triConsistentFmgrInfo ,
98- key -> collation ,
99- PointerGetDatum (key -> entryRes ),
100- UInt16GetDatum (key -> strategy ),
101- key -> query ,
102- UInt32GetDatum (key -> nuserentries ),
103- PointerGetDatum (key -> extra_data ),
104- PointerGetDatum (key -> queryValues ),
97+ return DatumGetGinTernaryValue (FunctionCall7Coll (
98+ key -> triConsistentFmgrInfo ,
99+ key -> collation ,
100+ PointerGetDatum (key -> entryRes ),
101+ UInt16GetDatum (key -> strategy ),
102+ key -> query ,
103+ UInt32GetDatum (key -> nuserentries ),
104+ PointerGetDatum (key -> extra_data ),
105+ PointerGetDatum (key -> queryValues ),
105106 PointerGetDatum (key -> queryCategories )));
106107}
107108
@@ -113,15 +114,16 @@ directTriConsistentFn(GinScanKey key)
113114static bool
114115shimBoolConsistentFn (GinScanKey key )
115116{
116- GinLogicValue result ;
117- result = DatumGetGinLogicValue (FunctionCall7Coll (key -> triConsistentFmgrInfo ,
118- key -> collation ,
119- PointerGetDatum (key -> entryRes ),
120- UInt16GetDatum (key -> strategy ),
121- key -> query ,
122- UInt32GetDatum (key -> nuserentries ),
123- PointerGetDatum (key -> extra_data ),
124- PointerGetDatum (key -> queryValues ),
117+ GinTernaryValue result ;
118+ result = DatumGetGinTernaryValue (FunctionCall7Coll (
119+ key -> triConsistentFmgrInfo ,
120+ key -> collation ,
121+ PointerGetDatum (key -> entryRes ),
122+ UInt16GetDatum (key -> strategy ),
123+ key -> query ,
124+ UInt32GetDatum (key -> nuserentries ),
125+ PointerGetDatum (key -> extra_data ),
126+ PointerGetDatum (key -> queryValues ),
125127 PointerGetDatum (key -> queryCategories )));
126128 if (result == GIN_MAYBE )
127129 {
@@ -147,15 +149,15 @@ shimBoolConsistentFn(GinScanKey key)
147149 *
148150 * NB: This function modifies the key->entryRes array!
149151 */
150- static GinLogicValue
152+ static GinTernaryValue
151153shimTriConsistentFn (GinScanKey key )
152154{
153155 int nmaybe ;
154156 int maybeEntries [MAX_MAYBE_ENTRIES ];
155157 int i ;
156158 bool boolResult ;
157159 bool recheck = false;
158- GinLogicValue curResult ;
160+ GinTernaryValue curResult ;
159161
160162 /*
161163 * Count how many MAYBE inputs there are, and store their indexes in
0 commit comments