Commit 56bb23a8 authored by Bruce Momjian's avatar Bruce Momjian

optimizer rename

parent 50034a85
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.38 1999/02/15 05:28:09 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.39 1999/02/15 05:49:59 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -248,7 +248,10 @@ make_one_rel_by_joins(Query *root, List *rels, int levels_needed) ...@@ -248,7 +248,10 @@ make_one_rel_by_joins(Query *root, List *rels, int levels_needed)
root->join_rel_list = rels = joined_rels; root->join_rel_list = rels = joined_rels;
} }
#ifdef NOT_USED
Assert(BushyPlanFlag || length(rels) == 1); Assert(BushyPlanFlag || length(rels) == 1);
#endif
Assert(length(rels) == 1);
#ifdef NOT_USED #ifdef NOT_USED
if (BushyPlanFlag) if (BushyPlanFlag)
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.49 1999/02/15 05:28:09 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.50 1999/02/15 05:50:00 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -67,7 +67,7 @@ static List *indexable_joinclauses(RelOptInfo *rel, RelOptInfo *index, ...@@ -67,7 +67,7 @@ static List *indexable_joinclauses(RelOptInfo *rel, RelOptInfo *index,
List *joininfo_list, List *restrictinfo_list); List *joininfo_list, List *restrictinfo_list);
static List *index_innerjoin(Query *root, RelOptInfo *rel, static List *index_innerjoin(Query *root, RelOptInfo *rel,
List *clausegroup_list, RelOptInfo *index); List *clausegroup_list, RelOptInfo *index);
static List *create_index_paths(Query *root, RelOptInfo *rel, RelOptInfo *index, static List *create_index_path_group(Query *root, RelOptInfo *rel, RelOptInfo *index,
List *clausegroup_list, bool join); List *clausegroup_list, bool join);
static List *add_index_paths(List *indexpaths, List *new_indexpaths); static List *add_index_paths(List *indexpaths, List *new_indexpaths);
static bool function_index_operand(Expr *funcOpnd, RelOptInfo *rel, RelOptInfo *index); static bool function_index_operand(Expr *funcOpnd, RelOptInfo *rel, RelOptInfo *index);
...@@ -152,7 +152,7 @@ create_index_paths(Query *root, ...@@ -152,7 +152,7 @@ create_index_paths(Query *root,
scanpaths = NIL; scanpaths = NIL;
if (scanclausegroups != NIL) if (scanclausegroups != NIL)
scanpaths = create_index_paths(root, scanpaths = create_index_path_group(root,
rel, rel,
index, index,
scanclausegroups, scanclausegroups,
...@@ -170,7 +170,7 @@ create_index_paths(Query *root, ...@@ -170,7 +170,7 @@ create_index_paths(Query *root,
if (joinclausegroups != NIL) if (joinclausegroups != NIL)
{ {
joinpaths = create_index_paths(root, rel, joinpaths = create_index_path_group(root, rel,
index, index,
joinclausegroups, joinclausegroups,
true); true);
...@@ -1330,7 +1330,7 @@ index_innerjoin(Query *root, RelOptInfo *rel, List *clausegroup_list, ...@@ -1330,7 +1330,7 @@ index_innerjoin(Query *root, RelOptInfo *rel, List *clausegroup_list,
} }
/* /*
* create_index_paths * create_index_path_group
* Creates a list of index path nodes for each group of clauses * Creates a list of index path nodes for each group of clauses
* (restriction or join) that can be used in conjunction with an index. * (restriction or join) that can be used in conjunction with an index.
* *
...@@ -1344,7 +1344,7 @@ index_innerjoin(Query *root, RelOptInfo *rel, List *clausegroup_list, ...@@ -1344,7 +1344,7 @@ index_innerjoin(Query *root, RelOptInfo *rel, List *clausegroup_list,
* *
*/ */
static List * static List *
create_index_paths(Query *root, create_index_path_group(Query *root,
RelOptInfo *rel, RelOptInfo *rel,
RelOptInfo *index, RelOptInfo *index,
List *clausegroup_list, List *clausegroup_list,
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: geqo.h,v 1.11 1999/02/13 23:21:44 momjian Exp $ * $Id: geqo.h,v 1.12 1999/02/15 05:50:02 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -75,7 +75,6 @@ extern RelOptInfo *geqo(Query *root); ...@@ -75,7 +75,6 @@ extern RelOptInfo *geqo(Query *root);
extern void geqo_params(int string_length); extern void geqo_params(int string_length);
extern Cost geqo_eval(Query *root, Gene *tour, int num_gene); extern Cost geqo_eval(Query *root, Gene *tour, int num_gene);
double geqo_log(double x, double b);
extern RelOptInfo *gimme_tree(Query *root, Gene *tour, int rel_count, int num_gene, RelOptInfo *outer_rel); extern RelOptInfo *gimme_tree(Query *root, Gene *tour, int rel_count, int num_gene, RelOptInfo *outer_rel);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment