1 /*-------------------------------------------------------------------------
4 * prototypes for pathnode.c, relnode.c.
7 * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * $Id: pathnode.h,v 1.34 2001/02/16 00:03:06 tgl Exp $
12 *-------------------------------------------------------------------------
17 #include "nodes/relation.h"
20 * prototypes for pathnode.c
22 extern int compare_path_costs(Path *path1, Path *path2,
23 CostSelector criterion);
24 extern int compare_fractional_path_costs(Path *path1, Path *path2,
26 extern void set_cheapest(RelOptInfo *parent_rel);
27 extern void add_path(RelOptInfo *parent_rel, Path *new_path);
29 extern Path *create_seqscan_path(RelOptInfo *rel);
30 extern IndexPath *create_index_path(Query *root, RelOptInfo *rel,
32 List *restriction_clauses,
34 ScanDirection indexscandir);
35 extern TidPath *create_tidscan_path(RelOptInfo *rel, List *tideval);
36 extern AppendPath *create_append_path(RelOptInfo *rel, List *subpaths);
37 extern Path *create_subqueryscan_path(RelOptInfo *rel);
39 extern NestPath *create_nestloop_path(RelOptInfo *joinrel,
43 List *restrict_clauses,
46 extern MergePath *create_mergejoin_path(RelOptInfo *joinrel,
50 List *restrict_clauses,
56 extern HashPath *create_hashjoin_path(RelOptInfo *joinrel,
60 List *restrict_clauses,
62 Selectivity innerdispersion);
65 * prototypes for relnode.c
67 extern RelOptInfo *get_base_rel(Query *root, int relid);
68 extern RelOptInfo *make_base_rel(Query *root, int relid);
69 extern RelOptInfo *get_join_rel(Query *root,
70 RelOptInfo *outer_rel,
71 RelOptInfo *inner_rel,
73 List **restrictlist_ptr);
75 #endif /* PATHNODE_H */