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

Commit4ea3f72

Browse files
committed
More optimization.
1 parentd244df9 commit4ea3f72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 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.26 1999/02/1114:59:02 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/pathnode.c,v 1.27 1999/02/1116:09:41 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -194,9 +194,9 @@ better_path(Path *new_path, List *unique_paths, bool *is_new)
194194
* Replace pathkeys that match exactly, (1,2), (1,2).
195195
* Replace pathkeys (1,2) with (1,2,3) if the latter is not
196196
* more expensive and replace unordered path with ordered
197-
* path if it is not more expensive.
197+
* path if it is not more expensive. Favor sorted keys
198+
* over unsorted keys in the same way.
198199
*/
199-
200200
/* same keys, and new is cheaper, use it */
201201
if ((longer_key==0&&more_sort==0&&
202202
new_path->path_cost<path->path_cost)||

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp