diff options
author | Teodor Sigaev <teodor@sigaev.ru> | 2008-12-04 11:08:46 +0000 |
---|---|---|
committer | Teodor Sigaev <teodor@sigaev.ru> | 2008-12-04 11:08:46 +0000 |
commit | 69b3383cfbbd82ef8a7a92a96f2a70388c13db2a (patch) | |
tree | 40703e7ef11d04859ab2d45e7aa040dcd9a9b009 /src/backend/access/gist/gistscan.c | |
parent | 754e6833ee8549b1a03e87ff6831e05c7f95e246 (diff) | |
download | postgresql-69b3383cfbbd82ef8a7a92a96f2a70388c13db2a.tar.gz postgresql-69b3383cfbbd82ef8a7a92a96f2a70388c13db2a.zip |
Initialize GISTScanOpaque->qual_ok even if there is no conditions.
Diffstat (limited to 'src/backend/access/gist/gistscan.c')
-rw-r--r-- | src/backend/access/gist/gistscan.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/access/gist/gistscan.c b/src/backend/access/gist/gistscan.c index 4e529b61992..9ccf83546ec 100644 --- a/src/backend/access/gist/gistscan.c +++ b/src/backend/access/gist/gistscan.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/gist/gistscan.c,v 1.73 2008/10/20 13:39:44 teodor Exp $ + * $PostgreSQL: pgsql/src/backend/access/gist/gistscan.c,v 1.74 2008/12/04 11:08:46 teodor Exp $ * *------------------------------------------------------------------------- */ @@ -76,6 +76,8 @@ gistrescan(PG_FUNCTION_ARGS) ItemPointerSetInvalid(&so->curpos); so->nPageData = so->curPageData = 0; + so->qual_ok = true; + /* Update scan key, if a new one is given */ if (key && scan->numberOfKeys > 0) { @@ -92,7 +94,6 @@ gistrescan(PG_FUNCTION_ARGS) * Next, if any of keys is a NULL and that key is not marked with * SK_SEARCHNULL then nothing can be found. */ - so->qual_ok = true; for (i = 0; i < scan->numberOfKeys; i++) { scan->keyData[i].sk_func = so->giststate->consistentFn[scan->keyData[i].sk_attno - 1]; |