Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4ea3f72

Browse files
committed
More optimization.
1 parent d244df9 commit 4ea3f72

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/11 14:59:02 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/pathnode.c,v 1.27 1999/02/11 16: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)