Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit69b3383

Browse files
committed
Initialize GISTScanOpaque->qual_ok even if there is no conditions.
1 parent754e683 commit69b3383

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)

[8]ページ先頭

©2009-2025 Movatter.jp