1996-07-09 08:22:35 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* pathnode.h--
|
1997-09-07 07:04:48 +02:00
|
|
|
* prototypes for pathnode.c, indexnode.c, relnode.c.
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
1997-09-08 04:41:22 +02:00
|
|
|
* $Id: pathnode.h,v 1.3 1997/09/08 02:37:52 momjian Exp $
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef PATHNODE_H
|
|
|
|
#define PATHNODE_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* prototypes for pathnode.c
|
|
|
|
*/
|
1997-09-08 04:41:22 +02:00
|
|
|
extern bool path_is_cheaper(Path * path1, Path * path2);
|
|
|
|
extern Path *set_cheapest(Rel * parent_rel, List * pathlist);
|
|
|
|
extern List *
|
1997-09-07 07:04:48 +02:00
|
|
|
add_pathlist(Rel * parent_rel, List * unique_paths,
|
|
|
|
List * new_paths);
|
1997-09-08 04:41:22 +02:00
|
|
|
extern Path *create_seqscan_path(Rel * rel);
|
1997-09-07 07:04:48 +02:00
|
|
|
extern IndexPath *
|
|
|
|
create_index_path(Query * root, Rel * rel, Rel * index,
|
|
|
|
List * restriction_clauses, bool is_join_scan);
|
|
|
|
extern JoinPath *
|
|
|
|
create_nestloop_path(Rel * joinrel, Rel * outer_rel,
|
|
|
|
Path * outer_path, Path * inner_path, List * keys);
|
|
|
|
extern MergePath *
|
|
|
|
create_mergesort_path(Rel * joinrel, int outersize,
|
|
|
|
int innersize, int outerwidth, int innerwidth, Path * outer_path,
|
|
|
|
Path * inner_path, List * keys, MergeOrder * order,
|
|
|
|
List * mergeclauses, List * outersortkeys, List * innersortkeys);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
1997-09-07 07:04:48 +02:00
|
|
|
extern HashPath *
|
|
|
|
create_hashjoin_path(Rel * joinrel, int outersize,
|
|
|
|
int innersize, int outerwidth, int innerwidth, Path * outer_path,
|
|
|
|
Path * inner_path, List * keys, Oid operator, List * hashclauses,
|
|
|
|
List * outerkeys, List * innerkeys);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* prototypes for rel.c
|
|
|
|
*/
|
1997-09-08 04:41:22 +02:00
|
|
|
extern Rel *rel_member(List * relid, List * rels);
|
|
|
|
extern Rel *get_base_rel(Query * root, int relid);
|
|
|
|
extern Rel *get_join_rel(Query * root, List * relid);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* prototypes for indexnode.h
|
|
|
|
*/
|
1997-09-08 04:41:22 +02:00
|
|
|
extern List *find_relation_indices(Query * root, Rel * rel);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
1997-09-07 07:04:48 +02:00
|
|
|
#endif /* PATHNODE_H */
|