1996-07-09 08:22:35 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01: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
|
|
|
*
|
|
|
|
*
|
2000-01-26 06:58:53 +01:00
|
|
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
2000-02-07 05:41:04 +01:00
|
|
|
* $Id: pathnode.h,v 1.25 2000/02/07 04:41:04 tgl Exp $
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef PATHNODE_H
|
|
|
|
#define PATHNODE_H
|
|
|
|
|
1997-11-26 02:14:33 +01:00
|
|
|
#include "nodes/relation.h"
|
|
|
|
|
1996-07-09 08:22:35 +02:00
|
|
|
/*
|
|
|
|
* prototypes for pathnode.c
|
|
|
|
*/
|
1997-09-08 23:56:23 +02:00
|
|
|
extern bool path_is_cheaper(Path *path1, Path *path2);
|
1999-05-26 00:43:53 +02:00
|
|
|
extern Path *set_cheapest(RelOptInfo *parent_rel, List *pathlist);
|
2000-02-07 05:41:04 +01:00
|
|
|
extern void add_path(RelOptInfo *parent_rel, Path *new_path);
|
|
|
|
extern void add_pathlist(RelOptInfo *parent_rel, List *new_paths);
|
1999-08-16 04:17:58 +02:00
|
|
|
|
1999-05-26 00:43:53 +02:00
|
|
|
extern Path *create_seqscan_path(RelOptInfo *rel);
|
1999-08-16 04:17:58 +02:00
|
|
|
extern IndexPath *create_index_path(Query *root, RelOptInfo *rel,
|
2000-01-09 01:26:47 +01:00
|
|
|
IndexOptInfo *index,
|
|
|
|
List *restriction_clauses);
|
1999-11-23 21:07:06 +01:00
|
|
|
extern TidPath *create_tidscan_path(RelOptInfo *rel, List *tideval);
|
1999-08-16 04:17:58 +02:00
|
|
|
|
|
|
|
extern NestPath *create_nestloop_path(RelOptInfo *joinrel,
|
2000-02-07 05:41:04 +01:00
|
|
|
Path *outer_path,
|
|
|
|
Path *inner_path,
|
|
|
|
List *restrict_clauses,
|
2000-01-09 01:26:47 +01:00
|
|
|
List *pathkeys);
|
|
|
|
|
2000-02-07 05:41:04 +01:00
|
|
|
extern MergePath *create_mergejoin_path(RelOptInfo *joinrel,
|
|
|
|
Path *outer_path,
|
|
|
|
Path *inner_path,
|
|
|
|
List *restrict_clauses,
|
|
|
|
List *pathkeys,
|
2000-01-09 01:26:47 +01:00
|
|
|
List *mergeclauses,
|
|
|
|
List *outersortkeys,
|
|
|
|
List *innersortkeys);
|
|
|
|
|
2000-02-07 05:41:04 +01:00
|
|
|
extern HashPath *create_hashjoin_path(RelOptInfo *joinrel,
|
|
|
|
Path *outer_path,
|
|
|
|
Path *inner_path,
|
|
|
|
List *restrict_clauses,
|
|
|
|
List *hashclauses,
|
2000-01-09 01:26:47 +01:00
|
|
|
Selectivity innerdisbursion);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
|
|
|
/*
|
2000-02-07 05:41:04 +01:00
|
|
|
* prototypes for relnode.c
|
1996-07-09 08:22:35 +02:00
|
|
|
*/
|
1998-07-18 06:22:52 +02:00
|
|
|
extern RelOptInfo *get_base_rel(Query *root, int relid);
|
2000-02-07 05:41:04 +01:00
|
|
|
extern RelOptInfo *get_join_rel(Query *root, RelOptInfo *outer_rel,
|
|
|
|
RelOptInfo *inner_rel,
|
|
|
|
List **restrictlist_ptr);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* prototypes for indexnode.h
|
|
|
|
*/
|
1999-05-26 00:43:53 +02:00
|
|
|
extern List *find_relation_indices(Query *root, RelOptInfo *rel);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
#endif /* PATHNODE_H */
|