diff options
author | Teodor Sigaev <teodor@sigaev.ru> | 2008-12-04 11:10:06 +0000 |
---|---|---|
committer | Teodor Sigaev <teodor@sigaev.ru> | 2008-12-04 11:10:06 +0000 |
commit | e78f83809b375075cc25b55786c6b5e7e203fe70 (patch) | |
tree | 4b82f9ad9d3a49cb5359ad5011f0c5078fd13192 /src | |
parent | 07531c6c37b6c9e3e26c379c4883b1459055bbbe (diff) | |
download | postgresql-e78f83809b375075cc25b55786c6b5e7e203fe70.tar.gz postgresql-e78f83809b375075cc25b55786c6b5e7e203fe70.zip |
Initialize GISTScanOpaque->qual_ok even if there is no conditions.
Diffstat (limited to 'src')
-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 05e47b9dc3a..39e7d32bf29 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.68.2.3 2008/10/22 12:54:25 teodor Exp $ + * $PostgreSQL: pgsql/src/backend/access/gist/gistscan.c,v 1.68.2.4 2008/12/04 11:10:06 teodor Exp $ * *------------------------------------------------------------------------- */ @@ -84,6 +84,8 @@ gistrescan(PG_FUNCTION_ARGS) ItemPointerSetInvalid(&so->markpos); so->nPageData = so->curPageData = 0; + so->qual_ok = true; + /* Update scan key, if a new one is given */ if (key && scan->numberOfKeys > 0) { @@ -100,7 +102,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]; |