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

Commitdee872d

Browse files
committed
geqo_rel_paths(): compute_joinrel_size() shouldn't be called
for non-JoinPath path! So now we have: if ( IsA_JoinPath (cheapest) ) rel->size = compute_joinrel_size(cheapest);
1 parent5c2649b commitdee872d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/backend/optimizer/geqo/geqo_paths.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Copyright (c) 1994, Regents of the University of California
77
*
8-
* $Id: geqo_paths.c,v 1.3 1997/06/10 07:53:55 vadim Exp $
8+
* $Id: geqo_paths.c,v 1.4 1997/06/11 02:44:12 vadim Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -112,7 +112,8 @@ geqo_rel_paths(Rel *rel)
112112
}
113113

114114
cheapest= (JoinPath*)set_paths(rel,path);
115-
rel->size=compute_joinrel_size(cheapest);
115+
if (IsA_JoinPath (cheapest) )
116+
rel->size=compute_joinrel_size(cheapest);
116117
}
117118

118119

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp