Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 86cf41e

Browse files
committed
Fix 'recheck' flag in tsquery's GIN tri-consistent function.
It needs to be initialized, like in the boolean gin_tsquery_consistent version. Peter Geoghegan.
1 parent fbc3def commit 86cf41e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/utils/adt/tsginidx.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,8 @@ gin_tsquery_triconsistent(PG_FUNCTION_ARGS)
308308
bool recheck;
309309

310310
/* The query requires recheck only if it involves weights */
311+
recheck = false;
312+
311313
if (query->size > 0)
312314
{
313315
QueryItem *item;

0 commit comments

Comments
 (0)