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

Commit68d704e

Browse files
committed
Minimal fix for crash bug in quals_match_foreign_key.
Discussion is still underway as to whether to revert the entire patchthat added this function, but that discussion may not conclude beforebeta1. So, in the meantime, let's do at least this much.David Rowley
1 parentc7ea68f commit68d704e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3944,13 +3944,13 @@ quals_match_foreign_key(PlannerInfo *root, ForeignKeyOptInfo *fkinfo,
39443944
if (i>0&&bms_is_member(quallstidx,qualmatches))
39453945
continue;
39463946

3947-
/*
3948-
* Here since 'usefulquals' only contains bitmap indexes for quals
3949-
* of type "var op var" we can safely skip checking this.
3950-
*/
39513947
rinfo= (RestrictInfo*)lfirst(lc);
39523948
clause= (OpExpr*)rinfo->clause;
39533949

3950+
/* only OpExprs are useful for consideration */
3951+
if (!IsA(clause,OpExpr))
3952+
continue;
3953+
39543954
/*
39553955
* If the operator does not match then there's little point in
39563956
* checking the operands.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp