*
*
* 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 $
*
*-------------------------------------------------------------------------
*/
root->join_rel_list = rels = joined_rels;
}
+#ifdef NOT_USED
Assert(BushyPlanFlag || length(rels) == 1);
+#endif
+ Assert(length(rels) == 1);
#ifdef NOT_USED
if (BushyPlanFlag)
*
*
* 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 $
*
*-------------------------------------------------------------------------
*/
List *joininfo_list, List *restrictinfo_list);
static List *index_innerjoin(Query *root, RelOptInfo *rel,
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);
static List *add_index_paths(List *indexpaths, List *new_indexpaths);
static bool function_index_operand(Expr *funcOpnd, RelOptInfo *rel, RelOptInfo *index);
scanpaths = NIL;
if (scanclausegroups != NIL)
- scanpaths = create_index_paths(root,
+ scanpaths = create_index_path_group(root,
rel,
index,
scanclausegroups,
if (joinclausegroups != NIL)
{
- joinpaths = create_index_paths(root, rel,
+ joinpaths = create_index_path_group(root, rel,
index,
joinclausegroups,
true);
}
/*
- * create_index_paths
+ * create_index_path_group
* Creates a list of index path nodes for each group of clauses
* (restriction or join) that can be used in conjunction with an index.
*
*
*/
static List *
-create_index_paths(Query *root,
- RelOptInfo *rel,
- RelOptInfo *index,
- List *clausegroup_list,
- bool join)
+create_index_path_group(Query *root,
+ RelOptInfo *rel,
+ RelOptInfo *index,
+ List *clausegroup_list,
+ bool join)
{
List *clausegroup = NIL;
List *ip_list = NIL;
*
* 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 $
*
*-------------------------------------------------------------------------
*/
extern void geqo_params(int string_length);
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);