@@ -58,7 +58,7 @@ trueConsistentFn(GinScanKey key)
58
58
key -> recheckCurItem = false;
59
59
return true;
60
60
}
61
- static GinLogicValue
61
+ static GinTernaryValue
62
62
trueTriConsistentFn (GinScanKey key )
63
63
{
64
64
return GIN_TRUE ;
@@ -91,17 +91,18 @@ directBoolConsistentFn(GinScanKey key)
91
91
/*
92
92
* A helper function for calling a native ternary logic consistent function.
93
93
*/
94
- static GinLogicValue
94
+ static GinTernaryValue
95
95
directTriConsistentFn (GinScanKey key )
96
96
{
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 ),
105
106
PointerGetDatum (key -> queryCategories )));
106
107
}
107
108
@@ -113,15 +114,16 @@ directTriConsistentFn(GinScanKey key)
113
114
static bool
114
115
shimBoolConsistentFn (GinScanKey key )
115
116
{
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 ),
125
127
PointerGetDatum (key -> queryCategories )));
126
128
if (result == GIN_MAYBE )
127
129
{
@@ -147,15 +149,15 @@ shimBoolConsistentFn(GinScanKey key)
147
149
*
148
150
* NB: This function modifies the key->entryRes array!
149
151
*/
150
- static GinLogicValue
152
+ static GinTernaryValue
151
153
shimTriConsistentFn (GinScanKey key )
152
154
{
153
155
int nmaybe ;
154
156
int maybeEntries [MAX_MAYBE_ENTRIES ];
155
157
int i ;
156
158
bool boolResult ;
157
159
bool recheck = false;
158
- GinLogicValue curResult ;
160
+ GinTernaryValue curResult ;
159
161
160
162
/*
161
163
* Count how many MAYBE inputs there are, and store their indexes in
0 commit comments