projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbc3def
)
Fix 'recheck' flag in tsquery's GIN tri-consistent function.
author
Heikki Linnakangas
Wed, 26 Mar 2014 08:13:44 +0000
(10:13 +0200)
committer
Heikki Linnakangas
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
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/adt/tsginidx.c
b/src/backend/utils/adt/tsginidx.c
index 47685e8b93049acccb1d994ef8097f36654f5fc1..49e44bd8a7e689897b94f6012325ae945b8b06a8 100644
(file)
--- a/
src/backend/utils/adt/tsginidx.c
+++ b/
src/backend/utils/adt/tsginidx.c
@@
-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;