Fix 'recheck' flag in tsquery's GIN tri-consistent function.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 26 Mar 2014 08:13:44 +0000 (10:13 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 26 Mar 2014 08:15:35 +0000 (10:15 +0200)
It needs to be initialized, like in the boolean gin_tsquery_consistent
version.

Peter Geoghegan.

src/backend/utils/adt/tsginidx.c

index 47685e8b93049acccb1d994ef8097f36654f5fc1..49e44bd8a7e689897b94f6012325ae945b8b06a8 100644 (file)
@@ -308,6 +308,8 @@ gin_tsquery_triconsistent(PG_FUNCTION_ARGS)
        bool            recheck;
 
        /* The query requires recheck only if it involves weights */
+       recheck = false;
+
        if (query->size > 0)
        {
                QueryItem  *item;