7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/optimizer/util/pathnode.c,v 1.28 1999/02/11 17:00:49 momjian Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/util/pathnode.c,v 1.29 1999/02/11 17:03:17 momjian Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -198,12 +198,12 @@ better_path(Path *new_path, List *unique_paths, bool *is_new)
198
198
* over unsorted keys in the same way.
199
199
*/
200
200
/* same keys, and new is cheaper, use it */
201
- if ((better_key == 0 && better_sort == 0 &&
202
- new_path -> path_cost < path -> path_cost ) ||
201
+ if ((( better_key == 0 && better_sort == 0 &&
202
+ new_path -> path_cost < path -> path_cost ) ||
203
203
204
204
/* new is better, and cheaper, use it */
205
205
((better_key == 1 && better_sort != 2 ) ||
206
- (better_key != 2 && better_sort == 1 )) &&
206
+ (better_key != 2 && better_sort == 1 ))) &&
207
207
new_path -> path_cost <= path -> path_cost )
208
208
{
209
209
* is_new = false;
@@ -212,12 +212,12 @@ better_path(Path *new_path, List *unique_paths, bool *is_new)
212
212
213
213
/* same keys, new is more expensive, stop */
214
214
else if
215
- ((better_key == 0 && better_sort == 0 &&
216
- new_path -> path_cost >= path -> path_cost ) ||
215
+ ((( better_key == 0 && better_sort == 0 &&
216
+ new_path -> path_cost >= path -> path_cost ) ||
217
217
218
218
/* old is better, and less expensive, stop */
219
219
((better_key == 2 && better_sort != 1 ) ||
220
- (better_key != 1 && better_sort == 2 )) &&
220
+ (better_key != 1 && better_sort == 2 ))) &&
221
221
new_path -> path_cost >= path -> path_cost )
222
222
{
223
223
* is_new = false;
0 commit comments