mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
OK, folks, here is the pgindent output.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: clauseinfo.h,v 1.8 1998/09/01 03:28:17 momjian Exp $
|
||||
* $Id: clauseinfo.h,v 1.9 1998/09/01 04:36:52 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -16,14 +16,12 @@
|
||||
#include "nodes/pg_list.h"
|
||||
#include "nodes/relation.h"
|
||||
|
||||
extern bool valid_or_clause(ClauseInfo *clauseinfo);
|
||||
extern bool valid_or_clause(ClauseInfo * clauseinfo);
|
||||
extern List *get_actual_clauses(List *clauseinfo_list);
|
||||
extern void
|
||||
get_relattvals(List *clauseinfo_list, List **attnos,
|
||||
extern void get_relattvals(List *clauseinfo_list, List **attnos,
|
||||
List **values, List **flags);
|
||||
extern void
|
||||
get_joinvars(Oid relid, List *clauseinfo_list,
|
||||
extern void get_joinvars(Oid relid, List *clauseinfo_list,
|
||||
List **attnos, List **values, List **flags);
|
||||
extern List *get_opnos(List *clauseinfo_list);
|
||||
|
||||
#endif /* CLAUSEINFO_H */
|
||||
#endif /* CLAUSEINFO_H */
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: clauses.h,v 1.12 1998/08/10 02:26:39 momjian Exp $
|
||||
* $Id: clauses.h,v 1.13 1998/09/01 04:36:53 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -42,11 +42,9 @@ extern bool is_joinable(Node *clause);
|
||||
extern bool qual_clause_p(Node *clause);
|
||||
extern void fix_opid(Node *clause);
|
||||
extern List *fix_opids(List *clauses);
|
||||
extern void
|
||||
get_relattval(Node *clause, int *relid,
|
||||
extern void get_relattval(Node *clause, int *relid,
|
||||
AttrNumber *attno, Datum *constval, int *flag);
|
||||
extern void
|
||||
get_rels_atts(Node *clause, int *relid1,
|
||||
extern void get_rels_atts(Node *clause, int *relid1,
|
||||
AttrNumber *attno1, int *relid2, AttrNumber *attno2);
|
||||
extern void CommuteClause(Node *clause);
|
||||
|
||||
@@ -54,4 +52,4 @@ extern void CommuteClause(Node *clause);
|
||||
nodeTag((Node*) clause) == T_Expr && \
|
||||
((Expr *) clause)->opType == SUBPLAN_EXPR)
|
||||
|
||||
#endif /* CLAUSES_H */
|
||||
#endif /* CLAUSES_H */
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: cost.h,v 1.10 1998/08/04 16:44:27 momjian Exp $
|
||||
* $Id: cost.h,v 1.11 1998/09/01 04:36:54 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -31,24 +31,20 @@ extern bool _enable_mergejoin_;
|
||||
extern bool _enable_hashjoin_;
|
||||
|
||||
extern Cost cost_seqscan(int relid, int relpages, int reltuples);
|
||||
extern Cost
|
||||
cost_index(Oid indexid, int expected_indexpages, Cost selec,
|
||||
extern Cost cost_index(Oid indexid, int expected_indexpages, Cost selec,
|
||||
int relpages, int reltuples, int indexpages,
|
||||
int indextuples, bool is_injoin);
|
||||
extern Cost cost_sort(List *keys, int tuples, int width, bool noread);
|
||||
extern Cost
|
||||
cost_nestloop(Cost outercost, Cost innercost, int outertuples,
|
||||
extern Cost cost_nestloop(Cost outercost, Cost innercost, int outertuples,
|
||||
int innertuples, int outerpages, bool is_indexjoin);
|
||||
extern Cost
|
||||
cost_mergejoin(Cost outercost, Cost innercost,
|
||||
extern Cost cost_mergejoin(Cost outercost, Cost innercost,
|
||||
List *outersortkeys, List *innersortkeys,
|
||||
int outersize, int innersize, int outerwidth, int innerwidth);
|
||||
extern Cost
|
||||
cost_hashjoin(Cost outercost, Cost innercost, List *outerkeys,
|
||||
extern Cost cost_hashjoin(Cost outercost, Cost innercost, List *outerkeys,
|
||||
List *innerkeys, int outersize, int innersize,
|
||||
int outerwidth, int innerwidth);
|
||||
extern int compute_rel_size(RelOptInfo *rel);
|
||||
extern int compute_rel_width(RelOptInfo *rel);
|
||||
extern int compute_rel_size(RelOptInfo * rel);
|
||||
extern int compute_rel_width(RelOptInfo * rel);
|
||||
extern int compute_joinrel_size(JoinPath *joinpath);
|
||||
extern int page_size(int tuples, int width);
|
||||
|
||||
@@ -60,8 +56,7 @@ extern void set_clause_selectivities(List *clauseinfo_list, Cost new_selectivity
|
||||
extern Cost product_selec(List *clauseinfo_list);
|
||||
extern void set_rest_relselec(Query *root, List *rel_list);
|
||||
extern void set_rest_selec(Query *root, List *clauseinfo_list);
|
||||
extern Cost
|
||||
compute_clause_selec(Query *root,
|
||||
extern Cost compute_clause_selec(Query *root,
|
||||
Node *clause, List *or_selectivities);
|
||||
|
||||
#endif /* COST_H */
|
||||
#endif /* COST_H */
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: geqo.h,v 1.8 1998/07/18 04:22:50 momjian Exp $
|
||||
* $Id: geqo.h,v 1.9 1998/09/01 04:36:56 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -76,7 +76,7 @@ extern void geqo_params(int string_length);
|
||||
|
||||
extern Cost geqo_eval(Query *root, Gene *tour, int num_gene);
|
||||
double geqo_log(double x, double b);
|
||||
extern RelOptInfo *gimme_tree(Query *root, Gene *tour, int rel_count, int num_gene, RelOptInfo *outer_rel);
|
||||
extern RelOptInfo *gimme_tree(Query *root, Gene *tour, int rel_count, int num_gene, RelOptInfo * outer_rel);
|
||||
|
||||
|
||||
#endif /* GEQO_H */
|
||||
#endif /* GEQO_H */
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: geqo_copy.h,v 1.5 1997/11/26 01:13:25 momjian Exp $
|
||||
* $Id: geqo_copy.h,v 1.6 1998/09/01 04:36:57 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -25,4 +25,4 @@
|
||||
|
||||
extern void geqo_copy(Chromosome *chromo1, Chromosome *chromo2, int string_length);
|
||||
|
||||
#endif /* GEQO_COPY_H */
|
||||
#endif /* GEQO_COPY_H */
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: geqo_gene.h,v 1.5 1997/11/26 01:13:27 momjian Exp $
|
||||
* $Id: geqo_gene.h,v 1.6 1998/09/01 04:36:58 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -43,4 +43,4 @@ typedef struct Pool
|
||||
int string_length;
|
||||
} Pool;
|
||||
|
||||
#endif /* GEQO_GENE_H */
|
||||
#endif /* GEQO_GENE_H */
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: geqo_misc.h,v 1.6 1998/07/18 04:22:50 momjian Exp $
|
||||
* $Id: geqo_misc.h,v 1.7 1998/09/01 04:36:59 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -31,8 +31,8 @@ extern void print_pool(FILE *fp, Pool *pool, int start, int stop);
|
||||
extern void print_gen(FILE *fp, Pool *pool, int generation);
|
||||
extern void print_edge_table(FILE *fp, Edge *edge_table, int num_gene);
|
||||
|
||||
extern void geqo_print_rel(Query *root, RelOptInfo *rel);
|
||||
extern void geqo_print_rel(Query *root, RelOptInfo * rel);
|
||||
extern void geqo_print_path(Query *root, Path *path, int indent);
|
||||
extern void geqo_print_joinclauses(Query *root, List *clauses);
|
||||
|
||||
#endif /* GEQO_MISC_H */
|
||||
#endif /* GEQO_MISC_H */
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: geqo_mutation.h,v 1.5 1997/11/26 01:13:29 momjian Exp $
|
||||
* $Id: geqo_mutation.h,v 1.6 1998/09/01 04:37:00 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -25,4 +25,4 @@
|
||||
|
||||
extern void geqo_mutation(Gene *tour, int num_gene);
|
||||
|
||||
#endif /* GEQO_MUTATION_H */
|
||||
#endif /* GEQO_MUTATION_H */
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: geqo_paths.h,v 1.5 1998/07/18 04:22:50 momjian Exp $
|
||||
* $Id: geqo_paths.h,v 1.6 1998/09/01 04:37:02 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -23,6 +23,6 @@
|
||||
|
||||
|
||||
extern List *geqo_prune_rels(List *rel_list);
|
||||
extern void geqo_rel_paths(RelOptInfo *rel);
|
||||
extern void geqo_rel_paths(RelOptInfo * rel);
|
||||
|
||||
#endif /* GEQO_PATHS_H */
|
||||
#endif /* GEQO_PATHS_H */
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: geqo_pool.h,v 1.5 1997/11/26 01:13:30 momjian Exp $
|
||||
* $Id: geqo_pool.h,v 1.6 1998/09/01 04:37:03 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -35,4 +35,4 @@ extern void spread_chromo(Chromosome *chromo, Pool *pool);
|
||||
|
||||
extern void sort_pool(Pool *pool);
|
||||
|
||||
#endif /* GEQO_POOL_H */
|
||||
#endif /* GEQO_POOL_H */
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: geqo_random.h,v 1.2 1997/09/07 04:59:03 momjian Exp $
|
||||
* $Id: geqo_random.h,v 1.3 1998/09/01 04:37:04 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -34,4 +34,4 @@
|
||||
|
||||
#define geqo_randint(upper,lower) ( (int) floor( geqo_rand()*((upper-lower)+0.999999) ) + lower )
|
||||
|
||||
#endif /* GEQO_RANDOM_H */
|
||||
#endif /* GEQO_RANDOM_H */
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: geqo_recombination.h,v 1.5 1997/11/26 01:13:32 momjian Exp $
|
||||
* $Id: geqo_recombination.h,v 1.6 1998/09/01 04:37:06 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -77,4 +77,4 @@ extern void ox1(Gene *mom, Gene *dad, Gene *offspring, int num_gene, City *city_
|
||||
extern void ox2(Gene *mom, Gene *dad, Gene *offspring, int num_gene, City *city_table);
|
||||
|
||||
|
||||
#endif /* GEQO_RECOMBINATION_H */
|
||||
#endif /* GEQO_RECOMBINATION_H */
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: geqo_selection.h,v 1.5 1997/11/26 01:13:36 momjian Exp $
|
||||
* $Id: geqo_selection.h,v 1.6 1998/09/01 04:37:07 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -26,4 +26,4 @@
|
||||
|
||||
extern void geqo_selection(Chromosome *momma, Chromosome *daddy, Pool *pool, double bias);
|
||||
|
||||
#endif /* GEQO_SELECTION_H */
|
||||
#endif /* GEQO_SELECTION_H */
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: internal.h,v 1.10 1997/09/12 21:25:02 momjian Exp $
|
||||
* $Id: internal.h,v 1.11 1998/09/01 04:37:08 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -88,4 +88,4 @@ extern int BushyPlanFlag;
|
||||
/* GEQO switch according to number of relations in a query */
|
||||
#define GEQO_RELS 8
|
||||
|
||||
#endif /* INTERNAL_H */
|
||||
#endif /* INTERNAL_H */
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: joininfo.h,v 1.7 1998/09/01 03:28:19 momjian Exp $
|
||||
* $Id: joininfo.h,v 1.8 1998/09/01 04:37:10 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -18,7 +18,7 @@
|
||||
#include "nodes/primnodes.h"
|
||||
|
||||
extern JoinInfo *joininfo_member(List *join_relids, List *joininfo_list);
|
||||
extern JoinInfo *find_joininfo_node(RelOptInfo *this_rel, List *join_relids);
|
||||
extern JoinInfo *find_joininfo_node(RelOptInfo * this_rel, List *join_relids);
|
||||
extern Var *other_join_clause_var(Var *var, Expr *clause);
|
||||
|
||||
#endif /* JOININFO_H */
|
||||
#endif /* JOININFO_H */
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: keys.h,v 1.7 1998/07/18 04:22:51 momjian Exp $
|
||||
* $Id: keys.h,v 1.8 1998/09/01 04:37:11 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -16,9 +16,9 @@
|
||||
#include "nodes/nodes.h"
|
||||
#include "nodes/relation.h"
|
||||
|
||||
extern bool match_indexkey_operand(int indexkey, Var *operand, RelOptInfo *rel);
|
||||
extern bool match_indexkey_operand(int indexkey, Var *operand, RelOptInfo * rel);
|
||||
extern Var *extract_subkey(JoinKey *jk, int which_subkey);
|
||||
extern bool samekeys(List *keys1, List *keys2);
|
||||
extern List *collect_index_pathkeys(int *index_keys, List *tlist);
|
||||
|
||||
#endif /* KEYS_H */
|
||||
#endif /* KEYS_H */
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: ordering.h,v 1.8 1998/02/26 04:42:15 momjian Exp $
|
||||
* $Id: ordering.h,v 1.9 1998/09/01 04:37:12 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -15,14 +15,11 @@
|
||||
|
||||
#include <nodes/relation.h>
|
||||
|
||||
extern bool
|
||||
equal_path_path_ordering(PathOrder *path_ordering1,
|
||||
extern bool equal_path_path_ordering(PathOrder *path_ordering1,
|
||||
PathOrder *path_ordering2);
|
||||
extern bool
|
||||
equal_path_merge_ordering(Oid *path_ordering,
|
||||
extern bool equal_path_merge_ordering(Oid *path_ordering,
|
||||
MergeOrder *merge_ordering);
|
||||
extern bool
|
||||
equal_merge_merge_ordering(MergeOrder *merge_ordering1,
|
||||
extern bool equal_merge_merge_ordering(MergeOrder *merge_ordering1,
|
||||
MergeOrder *merge_ordering2);
|
||||
|
||||
#endif /* ORDERING_H */
|
||||
#endif /* ORDERING_H */
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: pathnode.h,v 1.9 1998/08/04 16:44:29 momjian Exp $
|
||||
* $Id: pathnode.h,v 1.10 1998/09/01 04:37:13 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -21,25 +21,20 @@
|
||||
* prototypes for pathnode.c
|
||||
*/
|
||||
extern bool path_is_cheaper(Path *path1, Path *path2);
|
||||
extern Path *set_cheapest(RelOptInfo *parent_rel, List *pathlist);
|
||||
extern List *
|
||||
add_pathlist(RelOptInfo *parent_rel, List *unique_paths,
|
||||
extern Path *set_cheapest(RelOptInfo * parent_rel, List *pathlist);
|
||||
extern List *add_pathlist(RelOptInfo * parent_rel, List *unique_paths,
|
||||
List *new_paths);
|
||||
extern Path *create_seqscan_path(RelOptInfo *rel);
|
||||
extern IndexPath *
|
||||
create_index_path(Query *root, RelOptInfo *rel, RelOptInfo *index,
|
||||
extern Path *create_seqscan_path(RelOptInfo * rel);
|
||||
extern IndexPath *create_index_path(Query *root, RelOptInfo * rel, RelOptInfo * index,
|
||||
List *restriction_clauses, bool is_join_scan);
|
||||
extern JoinPath *
|
||||
create_nestloop_path(RelOptInfo *joinrel, RelOptInfo *outer_rel,
|
||||
extern JoinPath *create_nestloop_path(RelOptInfo * joinrel, RelOptInfo * outer_rel,
|
||||
Path *outer_path, Path *inner_path, List *keys);
|
||||
extern MergePath *
|
||||
create_mergejoin_path(RelOptInfo *joinrel, int outersize,
|
||||
extern MergePath *create_mergejoin_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 *
|
||||
create_hashjoin_path(RelOptInfo *joinrel, int outersize,
|
||||
extern HashPath *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);
|
||||
@@ -54,6 +49,6 @@ extern RelOptInfo *get_join_rel(Query *root, List *relid);
|
||||
/*
|
||||
* prototypes for indexnode.h
|
||||
*/
|
||||
extern List *find_relation_indices(Query *root, RelOptInfo *rel);
|
||||
extern List *find_relation_indices(Query *root, RelOptInfo * rel);
|
||||
|
||||
#endif /* PATHNODE_H */
|
||||
#endif /* PATHNODE_H */
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: paths.h,v 1.9 1998/07/18 04:22:51 momjian Exp $
|
||||
* $Id: paths.h,v 1.10 1998/09/01 04:37:14 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -27,8 +27,7 @@ extern List *find_paths(Query *root, List *rels);
|
||||
* indxpath.h
|
||||
* routines to generate index paths
|
||||
*/
|
||||
extern List *
|
||||
find_index_paths(Query *root, RelOptInfo *rel, List *indices,
|
||||
extern List *find_index_paths(Query *root, RelOptInfo * rel, List *indices,
|
||||
List *clauseinfo_list,
|
||||
List *joininfo_list);
|
||||
|
||||
@@ -42,43 +41,36 @@ extern void find_all_join_paths(Query *root, List *joinrels);
|
||||
/*
|
||||
* orindxpath.h
|
||||
*/
|
||||
extern List *create_or_index_paths(Query *root, RelOptInfo *rel, List *clauses);
|
||||
extern List *create_or_index_paths(Query *root, RelOptInfo * rel, List *clauses);
|
||||
|
||||
/*
|
||||
* hashutils.h
|
||||
* routines to deal with hash keys and clauses
|
||||
*/
|
||||
extern List *
|
||||
group_clauses_by_hashop(List *clauseinfo_list,
|
||||
extern List *group_clauses_by_hashop(List *clauseinfo_list,
|
||||
int inner_relid);
|
||||
|
||||
/*
|
||||
* joinutils.h
|
||||
* generic join method key/clause routines
|
||||
*/
|
||||
extern List *
|
||||
match_pathkeys_joinkeys(List *pathkeys,
|
||||
extern List *match_pathkeys_joinkeys(List *pathkeys,
|
||||
List *joinkeys, List *joinclauses, int which_subkey,
|
||||
List **matchedJoinClausesPtr);
|
||||
extern List *
|
||||
extract_path_keys(List *joinkeys, List *tlist,
|
||||
extern List *extract_path_keys(List *joinkeys, List *tlist,
|
||||
int which_subkey);
|
||||
extern Path *
|
||||
match_paths_joinkeys(List *joinkeys, PathOrder *ordering,
|
||||
extern Path *match_paths_joinkeys(List *joinkeys, PathOrder *ordering,
|
||||
List *paths, int which_subkey);
|
||||
extern List *
|
||||
new_join_pathkeys(List *outer_pathkeys,
|
||||
extern List *new_join_pathkeys(List *outer_pathkeys,
|
||||
List *join_rel_tlist, List *joinclauses);
|
||||
|
||||
/*
|
||||
* mergeutils.h
|
||||
* routines to deal with merge keys and clauses
|
||||
*/
|
||||
extern List *
|
||||
group_clauses_by_order(List *clauseinfo_list,
|
||||
extern List *group_clauses_by_order(List *clauseinfo_list,
|
||||
int inner_relid);
|
||||
extern MInfo *
|
||||
match_order_mergeinfo(PathOrder *ordering,
|
||||
extern MInfo *match_order_mergeinfo(PathOrder *ordering,
|
||||
List *mergeinfo_list);
|
||||
|
||||
/*
|
||||
@@ -94,8 +86,8 @@ extern List *final_join_rels(List *join_rel_list);
|
||||
*/
|
||||
extern void prune_joinrels(List *rel_list);
|
||||
extern void prune_rel_paths(List *rel_list);
|
||||
extern Path *prune_rel_path(RelOptInfo *rel, Path *unorderedpath);
|
||||
extern Path *prune_rel_path(RelOptInfo * rel, Path *unorderedpath);
|
||||
extern List *merge_joinrels(List *rel_list1, List *rel_list2);
|
||||
extern List *prune_oldrels(List *old_rels);
|
||||
|
||||
#endif /* PATHS_H */
|
||||
#endif /* PATHS_H */
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: plancat.h,v 1.8 1998/02/26 04:42:18 momjian Exp $
|
||||
* $Id: plancat.h,v 1.9 1998/09/01 04:37:16 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -34,35 +34,30 @@ typedef struct IdxInfoRetval
|
||||
} IdxInfoRetval;
|
||||
|
||||
|
||||
extern void
|
||||
relation_info(Query *root,
|
||||
extern void relation_info(Query *root,
|
||||
Oid relid,
|
||||
bool *hashindex, int *pages,
|
||||
int *tuples);
|
||||
|
||||
extern bool
|
||||
index_info(Query *root,
|
||||
extern bool index_info(Query *root,
|
||||
bool first, int relid, IdxInfoRetval *info);
|
||||
|
||||
extern Cost
|
||||
restriction_selectivity(Oid functionObjectId,
|
||||
extern Cost restriction_selectivity(Oid functionObjectId,
|
||||
Oid operatorObjectId,
|
||||
Oid relationObjectId,
|
||||
AttrNumber attributeNumber,
|
||||
char *constValue,
|
||||
int32 constFlag);
|
||||
|
||||
extern void
|
||||
index_selectivity(Oid indid, Oid *classes, List *opnos,
|
||||
extern void index_selectivity(Oid indid, Oid *classes, List *opnos,
|
||||
Oid relid, List *attnos, List *values, List *flags,
|
||||
int32 nkeys, float *idxPages, float *idxSelec);
|
||||
|
||||
extern Cost
|
||||
join_selectivity(Oid functionObjectId, Oid operatorObjectId,
|
||||
extern Cost join_selectivity(Oid functionObjectId, Oid operatorObjectId,
|
||||
Oid relationObjectId1, AttrNumber attributeNumber1,
|
||||
Oid relationObjectId2, AttrNumber attributeNumber2);
|
||||
|
||||
extern List *find_inheritance_children(Oid inhparent);
|
||||
extern List *VersionGetParents(Oid verrelid);
|
||||
|
||||
#endif /* PLANCAT_H */
|
||||
#endif /* PLANCAT_H */
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: planmain.h,v 1.14 1998/08/10 02:26:40 momjian Exp $
|
||||
* $Id: planmain.h,v 1.15 1998/09/01 04:37:17 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -21,8 +21,7 @@
|
||||
/*
|
||||
* prototypes for plan/planmain.c
|
||||
*/
|
||||
extern Plan *
|
||||
query_planner(Query *root,
|
||||
extern Plan *query_planner(Query *root,
|
||||
int command_type, List *tlist, List *qual);
|
||||
|
||||
|
||||
@@ -30,15 +29,12 @@ query_planner(Query *root,
|
||||
* prototypes for plan/createplan.c
|
||||
*/
|
||||
extern Plan *create_plan(Path *best_path);
|
||||
extern SeqScan *
|
||||
make_seqscan(List *qptlist, List *qpqual, Index scanrelid,
|
||||
extern SeqScan *make_seqscan(List *qptlist, List *qpqual, Index scanrelid,
|
||||
Plan *lefttree);
|
||||
extern Sort *
|
||||
make_sort(List *tlist, Oid tempid, Plan *lefttree,
|
||||
extern Sort *make_sort(List *tlist, Oid tempid, Plan *lefttree,
|
||||
int keycount);
|
||||
extern Agg *make_agg(List *tlist, Plan *lefttree);
|
||||
extern Group *
|
||||
make_group(List *tlist, bool tuplePerGroup, int ngrp,
|
||||
extern Group *make_group(List *tlist, bool tuplePerGroup, int ngrp,
|
||||
AttrNumber *grpColIdx, Sort *lefttree);
|
||||
extern Unique *make_unique(List *tlist, Plan *lefttree, char *uniqueAttr);
|
||||
|
||||
@@ -54,18 +50,16 @@ extern void add_missing_vars_to_tlist(Query *root, List *tlist);
|
||||
* prototypes for plan/setrefs.c
|
||||
*/
|
||||
extern void set_tlist_references(Plan *plan);
|
||||
extern List *
|
||||
join_references(List *clauses, List *outer_tlist,
|
||||
extern List *join_references(List *clauses, List *outer_tlist,
|
||||
List *inner_tlist);
|
||||
extern List *
|
||||
index_outerjoin_references(List *inner_indxqual,
|
||||
extern List *index_outerjoin_references(List *inner_indxqual,
|
||||
List *outer_tlist, Index inner_relid);
|
||||
extern void set_result_tlist_references(Result *resultNode);
|
||||
extern List *set_agg_tlist_references(Agg *aggNode);
|
||||
extern void set_agg_agglist_references(Agg *aggNode);
|
||||
extern void del_agg_tlist_references(List *tlist);
|
||||
extern List *check_having_qual_for_aggs(Node *clause,
|
||||
List *subplanTargetList, List *groupClause);
|
||||
extern List *check_having_qual_for_aggs(Node *clause,
|
||||
List *subplanTargetList, List *groupClause);
|
||||
extern List *check_having_qual_for_vars(Node *clause, List *targetlist_so_far);
|
||||
|
||||
#endif /* PLANMAIN_H */
|
||||
#endif /* PLANMAIN_H */
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: planner.h,v 1.8 1998/02/13 03:46:56 vadim Exp $
|
||||
* $Id: planner.h,v 1.9 1998/09/01 04:37:18 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -24,4 +24,4 @@ extern Plan *planner(Query *parse);
|
||||
extern Plan *union_planner(Query *parse);
|
||||
extern void pg_checkretval(Oid rettype, QueryTreeList *querytree_list);
|
||||
|
||||
#endif /* PLANNER_H */
|
||||
#endif /* PLANNER_H */
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: prep.h,v 1.12 1998/02/26 04:42:23 momjian Exp $
|
||||
* $Id: prep.h,v 1.13 1998/09/01 04:37:19 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -24,15 +24,13 @@ extern List *cnfify(Expr *qual, bool removeAndFlag);
|
||||
/*
|
||||
* prototypes for preptlist.h
|
||||
*/
|
||||
extern List *
|
||||
preprocess_targetlist(List *tlist, int command_type,
|
||||
extern List *preprocess_targetlist(List *tlist, int command_type,
|
||||
Index result_relation, List *range_table);
|
||||
|
||||
extern List *
|
||||
find_all_inheritors(List *unexamined_relids,
|
||||
extern List *find_all_inheritors(List *unexamined_relids,
|
||||
List *examined_relids);
|
||||
extern int first_inherit_rt_entry(List *rangetable);
|
||||
extern Append *plan_union_queries(Query *parse);
|
||||
extern Append *plan_inherit_queries(Query *parse, Index rt_index);
|
||||
|
||||
#endif /* PREP_H */
|
||||
#endif /* PREP_H */
|
||||
|
||||
@@ -17,4 +17,4 @@ extern List *SS_finalize_plan(Plan *plan);
|
||||
extern Node *SS_replace_correlation_vars(Node *expr);
|
||||
extern Node *SS_process_sublinks(Node *expr);
|
||||
|
||||
#endif /* SUBSELECT_H */
|
||||
#endif /* SUBSELECT_H */
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: tlist.h,v 1.12 1998/07/20 21:18:35 momjian Exp $
|
||||
* $Id: tlist.h,v 1.13 1998/09/01 04:37:21 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
extern TargetEntry *tlistentry_member(Var *var, List *targetlist);
|
||||
extern Expr *matching_tlvar(Var *var, List *targetlist);
|
||||
extern void add_tl_element(RelOptInfo *rel, Var *var);
|
||||
extern void add_tl_element(RelOptInfo * rel, Var *var);
|
||||
extern TargetEntry *create_tl_element(Var *var, int resdomno);
|
||||
extern List *get_actual_tlist(List *tlist);
|
||||
extern Resdom *tlist_member(Var *var, List *tlist);
|
||||
@@ -32,4 +32,4 @@ extern List *flatten_tlist(List *tlist);
|
||||
extern List *flatten_tlist_vars(List *full_tlist,
|
||||
List *flat_tlist);
|
||||
|
||||
#endif /* TLIST_H */
|
||||
#endif /* TLIST_H */
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: var.h,v 1.5 1997/11/26 01:13:52 momjian Exp $
|
||||
* $Id: var.h,v 1.6 1998/09/01 04:37:23 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -21,4 +21,4 @@ extern bool contain_var_clause(Node *clause);
|
||||
extern List *pull_var_clause(Node *clause);
|
||||
extern bool var_equal(Var *var1, Var *var2);
|
||||
|
||||
#endif /* VAR_H */
|
||||
#endif /* VAR_H */
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: xfunc.h,v 1.9 1998/09/01 03:28:20 momjian Exp $
|
||||
* $Id: xfunc.h,v 1.10 1998/09/01 04:37:24 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -49,12 +49,10 @@ extern int XfuncMode; /* defined in tcop/postgres.c */
|
||||
#define is_join(pathnode) (length(get_relids(get_parent(pathnode))) > 1 ? 1 : 0)
|
||||
|
||||
/* function prototypes from planner/path/xfunc.c */
|
||||
extern void xfunc_trypullup(RelOptInfo *rel);
|
||||
extern int
|
||||
xfunc_shouldpull(Path *childpath, JoinPath *parentpath,
|
||||
int whichchild, ClauseInfo *maxcinfopt);
|
||||
extern ClauseInfo *
|
||||
xfunc_pullup(Path *childpath, JoinPath *parentpath, ClauseInfo *cinfo,
|
||||
extern void xfunc_trypullup(RelOptInfo * rel);
|
||||
extern int xfunc_shouldpull(Path *childpath, JoinPath *parentpath,
|
||||
int whichchild, ClauseInfo * maxcinfopt);
|
||||
extern ClauseInfo *xfunc_pullup(Path *childpath, JoinPath *parentpath, ClauseInfo * cinfo,
|
||||
int whichchild, int clausetype);
|
||||
extern Cost xfunc_rank(Expr *clause);
|
||||
extern Cost xfunc_expense(Query *queryInfo, Expr *clause);
|
||||
@@ -71,7 +69,7 @@ extern List *xfunc_primary_join(JoinPath *pathnode);
|
||||
extern Cost xfunc_get_path_cost(Path *pathnode);
|
||||
extern Cost xfunc_total_path_cost(JoinPath *pathnode);
|
||||
extern Cost xfunc_expense_per_tuple(JoinPath *joinnode, int whichchild);
|
||||
extern void xfunc_fixvars(Expr *clause, RelOptInfo *rel, int varno);
|
||||
extern void xfunc_fixvars(Expr *clause, RelOptInfo * rel, int varno);
|
||||
extern int xfunc_cinfo_compare(void *arg1, void *arg2);
|
||||
extern int xfunc_clause_compare(void *arg1, void *arg2);
|
||||
extern void xfunc_disjunct_sort(List *clause_list);
|
||||
@@ -80,11 +78,11 @@ extern int xfunc_func_width(RegProcedure funcid, List *args);
|
||||
extern int xfunc_tuple_width(Relation rd);
|
||||
extern int xfunc_num_join_clauses(JoinPath *path);
|
||||
extern List *xfunc_LispRemove(List *foo, List *bar);
|
||||
extern bool xfunc_copyrel(RelOptInfo *from, RelOptInfo **to);
|
||||
extern bool xfunc_copyrel(RelOptInfo * from, RelOptInfo ** to);
|
||||
|
||||
/*
|
||||
* function prototypes for path/predmig.c
|
||||
*/
|
||||
extern bool xfunc_do_predmig(Path root);
|
||||
|
||||
#endif /* XFUNC_H */
|
||||
#endif /* XFUNC_H */
|
||||
|
||||
Reference in New Issue
Block a user