1996-07-09 06:22:35 +00:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-13 23:22:53 +00:00
|
|
|
* pathnode.h
|
1997-09-07 05:04:48 +00:00
|
|
|
* prototypes for pathnode.c, indexnode.c, relnode.c.
|
1996-07-09 06:22:35 +00:00
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
1999-11-23 20:07:06 +00:00
|
|
|
* $Id: pathnode.h,v 1.22 1999/11/23 20:07:06 momjian Exp $
|
1996-07-09 06:22:35 +00:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef PATHNODE_H
|
|
|
|
#define PATHNODE_H
|
|
|
|
|
1997-11-26 01:14:33 +00:00
|
|
|
#include "nodes/relation.h"
|
|
|
|
|
1996-07-09 06:22:35 +00:00
|
|
|
/*
|
|
|
|
* prototypes for pathnode.c
|
|
|
|
*/
|
1997-09-08 21:56:23 +00:00
|
|
|
extern bool path_is_cheaper(Path *path1, Path *path2);
|
1999-05-25 22:43:53 +00:00
|
|
|
extern Path *set_cheapest(RelOptInfo *parent_rel, List *pathlist);
|
1999-08-16 02:17:58 +00:00
|
|
|
extern List *add_pathlist(RelOptInfo *parent_rel, List *old_paths,
|
|
|
|
List *new_paths);
|
|
|
|
|
1999-05-25 22:43:53 +00:00
|
|
|
extern Path *create_seqscan_path(RelOptInfo *rel);
|
1999-08-16 02:17:58 +00:00
|
|
|
|
|
|
|
extern IndexPath *create_index_path(Query *root, RelOptInfo *rel,
|
|
|
|
RelOptInfo *index, List *restriction_clauses);
|
1999-11-23 20:07:06 +00:00
|
|
|
extern TidPath *create_tidscan_path(RelOptInfo *rel, List *tideval);
|
1999-08-16 02:17:58 +00:00
|
|
|
|
|
|
|
extern NestPath *create_nestloop_path(RelOptInfo *joinrel,
|
|
|
|
RelOptInfo *outer_rel, Path *outer_path, Path *inner_path,
|
|
|
|
List *pathkeys);
|
|
|
|
|
1999-05-25 22:43:53 +00:00
|
|
|
extern MergePath *create_mergejoin_path(RelOptInfo *joinrel, int outersize,
|
1999-08-16 02:17:58 +00:00
|
|
|
int innersize, int outerwidth, int innerwidth, Path *outer_path,
|
|
|
|
Path *inner_path, List *pathkeys,
|
|
|
|
List *mergeclauses, List *outersortkeys, List *innersortkeys);
|
1996-07-09 06:22:35 +00:00
|
|
|
|
1999-05-25 22:43:53 +00:00
|
|
|
extern HashPath *create_hashjoin_path(RelOptInfo *joinrel, int outersize,
|
1999-08-06 04:00:17 +00:00
|
|
|
int innersize, int outerwidth, int innerwidth, Path *outer_path,
|
1999-08-16 02:17:58 +00:00
|
|
|
Path *inner_path, List *hashclauses, Cost innerdisbursion);
|
1996-07-09 06:22:35 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* prototypes for rel.c
|
|
|
|
*/
|
1999-02-18 00:49:48 +00:00
|
|
|
extern RelOptInfo *rel_member(Relids relid, List *rels);
|
1998-07-18 04:22:52 +00:00
|
|
|
extern RelOptInfo *get_base_rel(Query *root, int relid);
|
1999-02-18 00:49:48 +00:00
|
|
|
extern RelOptInfo *get_join_rel(Query *root, Relids relid);
|
1996-07-09 06:22:35 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* prototypes for indexnode.h
|
|
|
|
*/
|
1999-05-25 22:43:53 +00:00
|
|
|
extern List *find_relation_indices(Query *root, RelOptInfo *rel);
|
1996-07-09 06:22:35 +00:00
|
|
|
|
1998-09-01 04:40:42 +00:00
|
|
|
#endif /* PATHNODE_H */
|