From 4ea3f728e9c85fa7095db4b2279c09a701edb850 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Thu, 11 Feb 1999 16:09:41 +0000
Subject: [PATCH] More optimization.

---
 src/backend/optimizer/util/pathnode.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/backend/optimizer/util/pathnode.c b/src/backend/optimizer/util/pathnode.c
index 47b6f3be2b6..c86ab8a2aa0 100644
--- a/src/backend/optimizer/util/pathnode.c
+++ b/src/backend/optimizer/util/pathnode.c
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *	  $Header: /cvsroot/pgsql/src/backend/optimizer/util/pathnode.c,v 1.26 1999/02/11 14:59:02 momjian Exp $
+ *	  $Header: /cvsroot/pgsql/src/backend/optimizer/util/pathnode.c,v 1.27 1999/02/11 16:09:41 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -194,9 +194,9 @@ better_path(Path *new_path, List *unique_paths, bool *is_new)
 				 * Replace pathkeys that match exactly, (1,2), (1,2).
 				 * Replace pathkeys (1,2) with (1,2,3) if the latter is not
 				 * more expensive and replace unordered path with ordered
-				 * path if it is not more expensive.
+				 * path if it is not more expensive.  Favor sorted keys
+				 * over unsorted keys in the same way.
 				 */
-				 
 								/* same keys, and new is cheaper, use it */
 			    if ((longer_key == 0 && more_sort == 0 &&
 					new_path->path_cost <  path->path_cost) ||
-- 
GitLab