Skip to content

Commit 69b3383

Browse files
committed
Initialize GISTScanOpaque->qual_ok even if there is no conditions.
1 parent 754e683 commit 69b3383

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/access/gist/gistscan.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/gist/gistscan.c,v 1.73 2008/10/20 13:39:44 teodor Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/gist/gistscan.c,v 1.74 2008/12/04 11:08:46 teodor Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -76,6 +76,8 @@ gistrescan(PG_FUNCTION_ARGS)
7676
ItemPointerSetInvalid(&so->curpos);
7777
so->nPageData = so->curPageData = 0;
7878

79+
so->qual_ok = true;
80+
7981
/* Update scan key, if a new one is given */
8082
if (key && scan->numberOfKeys > 0)
8183
{
@@ -92,7 +94,6 @@ gistrescan(PG_FUNCTION_ARGS)
9294
* Next, if any of keys is a NULL and that key is not marked with
9395
* SK_SEARCHNULL then nothing can be found.
9496
*/
95-
so->qual_ok = true;
9697
for (i = 0; i < scan->numberOfKeys; i++) {
9798
scan->keyData[i].sk_func = so->giststate->consistentFn[scan->keyData[i].sk_attno - 1];
9899

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy