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

Commit83d3626

Browse files
committed
Matching clauses to functional indices was broken, now fixed.
1 parentf73fc6e commit83d3626

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎src/backend/optimizer/path/indxpath.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.18 1998/07/27 19:37:58 vadim Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.19 1998/07/31 15:10:40 vadim Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -405,10 +405,10 @@ group_clauses_by_indexkey(RelOptInfo *rel,
405405
intcurIndxKey;
406406
OidcurClass;
407407

408-
if (clauseinfo_list==NIL)
408+
if (clauseinfo_list==NIL||indexkeys[0]==0)
409409
returnNIL;
410410

411-
while (!DoneMatchingIndexKeys(indexkeys,index))
411+
do
412412
{
413413
List*tempgroup=NIL;
414414

@@ -438,7 +438,7 @@ group_clauses_by_indexkey(RelOptInfo *rel,
438438
indexkeys++;
439439
classes++;
440440

441-
}
441+
}while (!DoneMatchingIndexKeys(indexkeys,index));
442442

443443
/* clausegroup holds all matched clauses ordered by indexkeys */
444444

@@ -469,10 +469,10 @@ group_clauses_by_ikey_for_joins(RelOptInfo *rel,
469469
OidcurClass;
470470
booljfound= false;
471471

472-
if (join_cinfo_list==NIL)
472+
if (join_cinfo_list==NIL||indexkeys[0]==0)
473473
returnNIL;
474474

475-
while (!DoneMatchingIndexKeys(indexkeys,index))
475+
do
476476
{
477477
List*tempgroup=NIL;
478478

@@ -518,7 +518,7 @@ group_clauses_by_ikey_for_joins(RelOptInfo *rel,
518518
indexkeys++;
519519
classes++;
520520

521-
}
521+
}while (!DoneMatchingIndexKeys(indexkeys,index));
522522

523523
/* clausegroup holds all matched clauses ordered by indexkeys */
524524

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp