60 lines
1.9 KiB
C
Raw Normal View History

/*-------------------------------------------------------------------------
*
* pathnode.h--
* prototypes for pathnode.c, indexnode.c, relnode.c.
*
*
* Copyright (c) 1994, Regents of the University of California
*
1998-07-18 04:22:52 +00:00
* $Id: pathnode.h,v 1.8 1998/07/18 04:22:51 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PATHNODE_H
#define PATHNODE_H
1997-11-26 01:14:33 +00:00
#include "nodes/nodes.h"
#include "nodes/relation.h"
#include "nodes/parsenodes.h"
/*
* prototypes for pathnode.c
*/
extern bool path_is_cheaper(Path *path1, Path *path2);
1998-07-18 04:22:52 +00:00
extern Path *set_cheapest(RelOptInfo *parent_rel, List *pathlist);
extern List *
1998-07-18 04:22:52 +00:00
add_pathlist(RelOptInfo *parent_rel, List *unique_paths,
List *new_paths);
1998-07-18 04:22:52 +00:00
extern Path *create_seqscan_path(RelOptInfo *rel);
extern IndexPath *
1998-07-18 04:22:52 +00:00
create_index_path(Query *root, RelOptInfo *rel, RelOptInfo *index,
List *restriction_clauses, bool is_join_scan);
extern JoinPath *
1998-07-18 04:22:52 +00:00
create_nestloop_path(RelOptInfo *joinrel, RelOptInfo *outer_rel,
Path *outer_path, Path *inner_path, List *keys);
extern MergePath *
1998-07-18 04:22:52 +00:00
create_mergesort_path(RelOptInfo *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);
extern HashPath *
1998-07-18 04:22:52 +00:00
create_hashjoin_path(RelOptInfo *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);
/*
* prototypes for rel.c
*/
1998-07-18 04:22:52 +00:00
extern RelOptInfo *rel_member(List *relid, List *rels);
extern RelOptInfo *get_base_rel(Query *root, int relid);
extern RelOptInfo *get_join_rel(Query *root, List *relid);
/*
* prototypes for indexnode.h
*/
1998-07-18 04:22:52 +00:00
extern List *find_relation_indices(Query *root, RelOptInfo *rel);
#endif /* PATHNODE_H */