summaryrefslogtreecommitdiff
path: root/src/backend/optimizer/geqo/geqo_paths.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/optimizer/geqo/geqo_paths.c')
-rw-r--r--src/backend/optimizer/geqo/geqo_paths.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/backend/optimizer/geqo/geqo_paths.c b/src/backend/optimizer/geqo/geqo_paths.c
index e388b0e827c..3b5b4170c85 100644
--- a/src/backend/optimizer/geqo/geqo_paths.c
+++ b/src/backend/optimizer/geqo/geqo_paths.c
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: geqo_paths.c,v 1.2 1997/02/19 14:52:06 scrappy Exp $
+ * $Id: geqo_paths.c,v 1.3 1997/06/10 07:53:55 vadim Exp $
*
*-------------------------------------------------------------------------
*/
@@ -102,16 +102,17 @@ geqo_rel_paths(Rel *rel)
Path *path = (Path*)NULL;
JoinPath *cheapest = (JoinPath*)NULL;
- foreach(y, rel->pathlist) {
- path = (Path*)lfirst(y);
+ rel->size = 0;
+ foreach(y, rel->pathlist)
+ {
+ path = (Path*)lfirst(y);
- if(!path->p_ordering.ord.sortop) {
+ if(!path->p_ordering.ord.sortop)
break;
- }
- }
+ }
- cheapest = (JoinPath*)set_paths(rel, path);
- rel->size = compute_joinrel_size(cheapest);
+ cheapest = (JoinPath*)set_paths(rel, path);
+ rel->size = compute_joinrel_size(cheapest);
}