5
5
*
6
6
* Copyright (c) 1994, Regents of the University of California
7
7
*
8
- * $Id: geqo_eval.c,v 1.21 1998/08/04 16:44:02 momjian Exp $
8
+ * $Id: geqo_eval.c,v 1.22 1998/08/10 02:26:16 momjian Exp $
9
9
*
10
10
*-------------------------------------------------------------------------
11
11
*/
@@ -71,17 +71,17 @@ geqo_eval(Query *root, Gene *tour, int num_gene)
71
71
List * temp ;
72
72
73
73
74
- /* remember root->join_relation_list_ ... */
75
- /* because root->join_relation_list_ will be changed during the following */
76
- temp = listCopy (root -> join_relation_list_ );
74
+ /* remember root->join_rel_list ... */
75
+ /* because root->join_rel_list will be changed during the following */
76
+ temp = listCopy (root -> join_rel_list );
77
77
78
78
/* joinrel is readily processed query tree -- left-sided ! */
79
79
joinrel = gimme_tree (root , tour , 0 , num_gene , NULL );
80
80
81
81
/* compute fitness */
82
82
fitness = (Cost ) joinrel -> cheapestpath -> path_cost ;
83
83
84
- root -> join_relation_list_ = listCopy (temp );
84
+ root -> join_rel_list = listCopy (temp );
85
85
86
86
pfree (joinrel );
87
87
freeList (temp );
@@ -113,7 +113,7 @@ gimme_tree(Query *root, Gene *tour, int rel_count, int num_gene, RelOptInfo *out
113
113
/* tour[0] = 3; tour[1] = 1; tour[2] = 2 */
114
114
base_rel_index = (int ) tour [rel_count ];
115
115
116
- inner_rel = (RelOptInfo * ) geqo_nth (base_rel_index , root -> base_relation_list_ );
116
+ inner_rel = (RelOptInfo * ) geqo_nth (base_rel_index , root -> base_rel_list );
117
117
118
118
if (rel_count == 0 )
119
119
{ /* processing first join with
@@ -169,7 +169,7 @@ gimme_tree(Query *root, Gene *tour, int rel_count, int num_gene, RelOptInfo *out
169
169
new_rel -> size = compute_rel_size (new_rel );
170
170
new_rel -> width = compute_rel_width (new_rel );
171
171
172
- root -> join_relation_list_ = lcons (new_rel , NIL );
172
+ root -> join_rel_list = lcons (new_rel , NIL );
173
173
174
174
return gimme_tree (root , tour , rel_count , num_gene , new_rel );
175
175
}
@@ -482,7 +482,7 @@ geqo_add_new_joininfos(Query *root, List *joinrels, List *outerrels)
482
482
*/
483
483
484
484
/*
485
- * if ( (root->join_relation_list_ ) != NIL ) { rel =
485
+ * if ( (root->join_rel_list ) != NIL ) { rel =
486
486
* get_join_rel(root, xrelid); } else { rel =
487
487
* get_base_rel(root, lfirsti(xrelid)); }
488
488
*/
@@ -495,7 +495,7 @@ geqo_add_new_joininfos(Query *root, List *joinrels, List *outerrels)
495
495
*/
496
496
497
497
relids = lconsi (lfirsti (xrelid ), NIL );
498
- rel = rel_member (relids , root -> base_relation_list_ );
498
+ rel = rel_member (relids , root -> base_rel_list );
499
499
500
500
add_superrels (rel , joinrel );
501
501
}
@@ -521,7 +521,7 @@ geqo_add_new_joininfos(Query *root, List *joinrels, List *outerrels)
521
521
*/
522
522
523
523
/*
524
- * if ( (root->join_relation_list_ ) != NIL ) { rel =
524
+ * if ( (root->join_rel_list ) != NIL ) { rel =
525
525
* get_join_rel(root, xrelid); } else { rel =
526
526
* get_base_rel(root, lfirsti(xrelid)); }
527
527
*/
@@ -534,7 +534,7 @@ geqo_add_new_joininfos(Query *root, List *joinrels, List *outerrels)
534
534
*/
535
535
536
536
relids = lconsi (lfirsti (xrelid ), NIL );
537
- rel = rel_member (relids , root -> base_relation_list_ );
537
+ rel = rel_member (relids , root -> base_rel_list );
538
538
539
539
super_rels = rel -> superrels ;
540
540
new_joininfo = makeNode (JInfo );
0 commit comments