File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -194,14 +194,16 @@ gin_consistent_hstore_hash(PG_FUNCTION_ARGS)
194
194
bool res = true;
195
195
int32 i ;
196
196
197
+ /* All cases are inexact because of hashing */
198
+ * recheck = true;
199
+
197
200
if (strategy == HStoreContainsStrategyNumber )
198
201
{
199
202
/*
200
203
* Index doesn't have information about correspondence of keys and
201
204
* values, so we need recheck. However, if not all the keys are
202
205
* present, we can fail at once.
203
206
*/
204
- * recheck = true;
205
207
for (i = 0 ; i < nkeys ; i ++ )
206
208
{
207
209
if (!check [i ])
@@ -213,20 +215,14 @@ gin_consistent_hstore_hash(PG_FUNCTION_ARGS)
213
215
}
214
216
else if (strategy == HStoreExistsStrategyNumber )
215
217
{
216
- /* Existence of key is guaranteed in default search mode */
217
- * recheck = false;
218
218
res = true;
219
219
}
220
220
else if (strategy == HStoreExistsAnyStrategyNumber )
221
221
{
222
- /* Existence of key is guaranteed in default search mode */
223
- * recheck = false;
224
222
res = true;
225
223
}
226
224
else if (strategy == HStoreExistsAllStrategyNumber )
227
225
{
228
- /* Testing for all the keys being present gives an exact result */
229
- * recheck = false;
230
226
for (i = 0 ; i < nkeys ; i ++ )
231
227
{
232
228
if (!check [i ])
You can’t perform that action at this time.
0 commit comments