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

Commit55d0465

Browse files
committed
optimizer update
1 parent847da1a commit55d0465

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

‎src/backend/optimizer/util/pathnode.c

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/pathnode.c,v 1.31 1999/02/11 21:05:28 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/pathnode.c,v 1.32 1999/02/12 02:37:52 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -211,19 +211,25 @@ better_path(Path *new_path, List *unique_paths, bool *is_new)
211211
new_path->path_cost <=path->path_cost))
212212
{
213213
*is_new= false;
214-
returnnew_path;
214+
returnpath;
215215
}
216216

217217
/* same keys, new is more expensive, stop */
218-
elseif
219-
((better_key==0&&better_sort==0&&
220-
new_path->path_cost >=path->path_cost)||
218+
if ((better_key==0&&better_sort==0&&
219+
new_path->path_cost >=path->path_cost)||
221220

222221
/* old is better, and less expensive, stop */
223222
(((better_key==2&&better_sort!=1)||
224223
(better_key!=1&&better_sort==2))&&
225224
new_path->path_cost >=path->path_cost))
226225
{
226+
#ifdefOPTDB_DEBUG
227+
printf("better key %d better sort %d\n",better_key,better_sort);
228+
printf("new\n");
229+
pprint(new_path);
230+
printf("old\n");
231+
pprint(path);
232+
#endif
227233
*is_new= false;
228234
returnNULL;
229235
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp