postgresql/src/include/optimizer/paths.h

97 lines
2.7 KiB
C
Raw Normal View History

/*-------------------------------------------------------------------------
*
* paths.h
* prototypes for various files in optimizer/paths (were separate
* header files
*
*
* Copyright (c) 1994, Regents of the University of California
*
1999-02-19 06:18:06 +01:00
* $Id: paths.h,v 1.24 1999/02/19 05:18:06 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PATHS_H
#define PATHS_H
1997-11-26 02:14:33 +01:00
#include "nodes/nodes.h"
#include "nodes/parsenodes.h"
#include "nodes/relation.h"
/*
* allpaths.h
*/
extern RelOptInfo *make_one_rel(Query *root, List *rels);
/*
* indxpath.h
* routines to generate index paths
*/
1999-02-15 06:28:10 +01:00
extern List *create_index_paths(Query *root, RelOptInfo *rel, List *indices,
List *restrictinfo_list,
List *joininfo_list);
/*
* joinpath.h
* routines to create join paths
*/
1999-02-14 05:57:02 +01:00
extern void update_rels_pathlist_for_joins(Query *root, List *joinrels);
/*
* orindxpath.h
*/
1999-02-10 22:02:50 +01:00
extern List *create_or_index_paths(Query *root, RelOptInfo *rel, List *clauses);
/*
* hashutils.h
* routines to deal with hash keys and clauses
*/
extern List *group_clauses_by_hashop(List *restrictinfo_list,
int inner_relid);
/*
* joinutils.h
* generic join method key/clause routines
*/
1999-02-19 06:18:06 +01:00
extern List *order_joinkeys_by_pathkeys(List *pathkeys,
1999-02-19 03:05:20 +01:00
List *joinkeys, List *joinclauses, int outer_or_inner,
List **matchedJoinClausesPtr);
extern List *extract_path_keys(List *joinkeys, List *tlist,
1999-02-19 03:05:20 +01:00
int outer_or_inner);
1999-02-19 06:18:06 +01:00
extern Path *get_cheapest_path_for_joinkeys(List *joinkeys,
PathOrder *ordering, List *paths, int outer_or_inner);
extern List *new_join_pathkeys(List *outer_pathkeys,
List *join_rel_tlist, List *joinclauses);
/*
* mergeutils.h
* routines to deal with merge keys and clauses
*/
extern List *group_clauses_by_order(List *restrictinfo_list,
int inner_relid);
1999-02-04 04:19:11 +01:00
extern MergeInfo *match_order_mergeinfo(PathOrder *ordering,
List *mergeinfo_list);
/*
* joinrels.h
* routines to determine which relations to join
*/
1999-02-18 05:45:36 +01:00
extern List *make_rels_by_joins(Query *root, List *old_rels);
extern List *make_rels_by_clause_joins(Query *root, RelOptInfo *old_rel,
1999-02-18 01:49:48 +01:00
List *joininfo_list, Relids only_relids);
1999-02-18 05:45:36 +01:00
extern List *make_rels_by_clauseless_joins(RelOptInfo *old_rel,
List *inner_rels);
extern RelOptInfo *make_join_rel(RelOptInfo *outer_rel, RelOptInfo *inner_rel, JoinInfo *joininfo);
1999-02-18 05:45:36 +01:00
extern List *new_join_tlist(List *tlist, int first_resdomno);
extern RelOptInfo *get_cheapest_complete_rel(List *join_rel_list);
/*
* prototypes for path/prune.c
*/
1999-02-14 05:57:02 +01:00
extern void merge_rels_with_same_relids(List *rel_list);
1999-02-12 06:57:08 +01:00
extern void rels_set_cheapest(List *rel_list);
extern List *del_rels_all_bushy_inactive(List *old_rels);
#endif /* PATHS_H */