mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
Ye-old pgindent run. Same 4-space tabs.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: clauses.h,v 1.35 2000/04/04 01:21:45 tgl Exp $
|
||||
* $Id: clauses.h,v 1.36 2000/04/12 17:16:41 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -50,8 +50,8 @@ extern List *pull_constant_clauses(List *quals, List **constantQual);
|
||||
extern void clause_get_relids_vars(Node *clause, Relids *relids, List **vars);
|
||||
extern int NumRelids(Node *clause);
|
||||
extern void get_relattval(Node *clause, int targetrelid,
|
||||
int *relid, AttrNumber *attno,
|
||||
Datum *constval, int *flag);
|
||||
int *relid, AttrNumber *attno,
|
||||
Datum *constval, int *flag);
|
||||
extern void get_rels_atts(Node *clause, int *relid1,
|
||||
AttrNumber *attno1, int *relid2, AttrNumber *attno2);
|
||||
extern void CommuteClause(Expr *clause);
|
||||
@@ -59,9 +59,9 @@ extern void CommuteClause(Expr *clause);
|
||||
extern Node *eval_const_expressions(Node *node);
|
||||
|
||||
extern bool expression_tree_walker(Node *node, bool (*walker) (),
|
||||
void *context);
|
||||
extern Node *expression_tree_mutator(Node *node, Node * (*mutator) (),
|
||||
void *context);
|
||||
void *context);
|
||||
extern Node *expression_tree_mutator(Node *node, Node *(*mutator) (),
|
||||
void *context);
|
||||
|
||||
#define is_subplan(clause) ((clause) != NULL && \
|
||||
IsA(clause, Expr) && \
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: cost.h,v 1.31 2000/03/22 22:08:30 tgl Exp $
|
||||
* $Id: cost.h,v 1.32 2000/04/12 17:16:42 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -20,7 +20,7 @@
|
||||
/* NB: cost-estimation code should use the variables, not these constants! */
|
||||
#define DEFAULT_EFFECTIVE_CACHE_SIZE 1000.0 /* measured in pages */
|
||||
#define DEFAULT_RANDOM_PAGE_COST 4.0
|
||||
#define DEFAULT_CPU_TUPLE_COST 0.01
|
||||
#define DEFAULT_CPU_TUPLE_COST 0.01
|
||||
#define DEFAULT_CPU_INDEX_TUPLE_COST 0.001
|
||||
#define DEFAULT_CPU_OPERATOR_COST 0.0025
|
||||
|
||||
@@ -53,36 +53,36 @@ extern bool enable_hashjoin;
|
||||
|
||||
extern void cost_seqscan(Path *path, RelOptInfo *baserel);
|
||||
extern void cost_index(Path *path, Query *root,
|
||||
RelOptInfo *baserel, IndexOptInfo *index,
|
||||
List *indexQuals, bool is_injoin);
|
||||
RelOptInfo *baserel, IndexOptInfo *index,
|
||||
List *indexQuals, bool is_injoin);
|
||||
extern void cost_tidscan(Path *path, RelOptInfo *baserel, List *tideval);
|
||||
extern void cost_sort(Path *path, List *pathkeys, double tuples, int width);
|
||||
extern void cost_nestloop(Path *path, Path *outer_path, Path *inner_path,
|
||||
List *restrictlist);
|
||||
List *restrictlist);
|
||||
extern void cost_mergejoin(Path *path, Path *outer_path, Path *inner_path,
|
||||
List *restrictlist,
|
||||
List *outersortkeys, List *innersortkeys);
|
||||
List *restrictlist,
|
||||
List *outersortkeys, List *innersortkeys);
|
||||
extern void cost_hashjoin(Path *path, Path *outer_path, Path *inner_path,
|
||||
List *restrictlist, Selectivity innerdisbursion);
|
||||
List *restrictlist, Selectivity innerdisbursion);
|
||||
extern Cost cost_qual_eval(List *quals);
|
||||
extern void set_baserel_size_estimates(Query *root, RelOptInfo *rel);
|
||||
extern void set_joinrel_size_estimates(Query *root, RelOptInfo *rel,
|
||||
RelOptInfo *outer_rel,
|
||||
RelOptInfo *inner_rel,
|
||||
List *restrictlist);
|
||||
RelOptInfo *outer_rel,
|
||||
RelOptInfo *inner_rel,
|
||||
List *restrictlist);
|
||||
|
||||
/*
|
||||
* prototypes for clausesel.c
|
||||
* routines to compute clause selectivities
|
||||
*/
|
||||
extern Selectivity restrictlist_selectivity(Query *root,
|
||||
List *restrictinfo_list,
|
||||
int varRelid);
|
||||
List *restrictinfo_list,
|
||||
int varRelid);
|
||||
extern Selectivity clauselist_selectivity(Query *root,
|
||||
List *clauses,
|
||||
int varRelid);
|
||||
List *clauses,
|
||||
int varRelid);
|
||||
extern Selectivity clause_selectivity(Query *root,
|
||||
Node *clause,
|
||||
int varRelid);
|
||||
Node *clause,
|
||||
int varRelid);
|
||||
|
||||
#endif /* COST_H */
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: pathnode.h,v 1.26 2000/02/15 20:49:26 tgl Exp $
|
||||
* $Id: pathnode.h,v 1.27 2000/04/12 17:16:42 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -20,48 +20,48 @@
|
||||
* prototypes for pathnode.c
|
||||
*/
|
||||
extern int compare_path_costs(Path *path1, Path *path2,
|
||||
CostSelector criterion);
|
||||
CostSelector criterion);
|
||||
extern int compare_fractional_path_costs(Path *path1, Path *path2,
|
||||
double fraction);
|
||||
double fraction);
|
||||
extern void set_cheapest(RelOptInfo *parent_rel);
|
||||
extern void add_path(RelOptInfo *parent_rel, Path *new_path);
|
||||
|
||||
extern Path *create_seqscan_path(RelOptInfo *rel);
|
||||
extern IndexPath *create_index_path(Query *root, RelOptInfo *rel,
|
||||
IndexOptInfo *index,
|
||||
List *restriction_clauses,
|
||||
ScanDirection indexscandir);
|
||||
IndexOptInfo *index,
|
||||
List *restriction_clauses,
|
||||
ScanDirection indexscandir);
|
||||
extern TidPath *create_tidscan_path(RelOptInfo *rel, List *tideval);
|
||||
|
||||
extern NestPath *create_nestloop_path(RelOptInfo *joinrel,
|
||||
Path *outer_path,
|
||||
Path *inner_path,
|
||||
List *restrict_clauses,
|
||||
List *pathkeys);
|
||||
Path *outer_path,
|
||||
Path *inner_path,
|
||||
List *restrict_clauses,
|
||||
List *pathkeys);
|
||||
|
||||
extern MergePath *create_mergejoin_path(RelOptInfo *joinrel,
|
||||
Path *outer_path,
|
||||
Path *inner_path,
|
||||
List *restrict_clauses,
|
||||
List *pathkeys,
|
||||
List *mergeclauses,
|
||||
List *outersortkeys,
|
||||
List *innersortkeys);
|
||||
Path *outer_path,
|
||||
Path *inner_path,
|
||||
List *restrict_clauses,
|
||||
List *pathkeys,
|
||||
List *mergeclauses,
|
||||
List *outersortkeys,
|
||||
List *innersortkeys);
|
||||
|
||||
extern HashPath *create_hashjoin_path(RelOptInfo *joinrel,
|
||||
Path *outer_path,
|
||||
Path *inner_path,
|
||||
List *restrict_clauses,
|
||||
List *hashclauses,
|
||||
Selectivity innerdisbursion);
|
||||
Path *outer_path,
|
||||
Path *inner_path,
|
||||
List *restrict_clauses,
|
||||
List *hashclauses,
|
||||
Selectivity innerdisbursion);
|
||||
|
||||
/*
|
||||
* prototypes for relnode.c
|
||||
*/
|
||||
extern RelOptInfo *get_base_rel(Query *root, int relid);
|
||||
extern RelOptInfo *get_join_rel(Query *root, RelOptInfo *outer_rel,
|
||||
RelOptInfo *inner_rel,
|
||||
List **restrictlist_ptr);
|
||||
RelOptInfo *inner_rel,
|
||||
List **restrictlist_ptr);
|
||||
|
||||
/*
|
||||
* prototypes for indexnode.h
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: paths.h,v 1.43 2000/02/15 20:49:26 tgl Exp $
|
||||
* $Id: paths.h,v 1.44 2000/04/12 17:16:42 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -34,13 +34,13 @@ extern RelOptInfo *make_one_rel(Query *root);
|
||||
* routines to generate index paths
|
||||
*/
|
||||
extern void create_index_paths(Query *root, RelOptInfo *rel, List *indices,
|
||||
List *restrictinfo_list,
|
||||
List *joininfo_list);
|
||||
List *restrictinfo_list,
|
||||
List *joininfo_list);
|
||||
extern Oid indexable_operator(Expr *clause, Oid opclass, Oid relam,
|
||||
bool indexkey_on_left);
|
||||
bool indexkey_on_left);
|
||||
extern List *extract_or_indexqual_conditions(RelOptInfo *rel,
|
||||
IndexOptInfo *index,
|
||||
Expr *orsubclause);
|
||||
IndexOptInfo *index,
|
||||
Expr *orsubclause);
|
||||
extern List *expand_indexqual_conditions(List *indexquals);
|
||||
|
||||
/*
|
||||
@@ -48,7 +48,7 @@ extern List *expand_indexqual_conditions(List *indexquals);
|
||||
* additional routines for indexable OR clauses
|
||||
*/
|
||||
extern void create_or_index_paths(Query *root, RelOptInfo *rel,
|
||||
List *clauses);
|
||||
List *clauses);
|
||||
|
||||
/*
|
||||
* tidpath.h
|
||||
@@ -61,9 +61,9 @@ extern void create_tidscan_paths(Query *root, RelOptInfo *rel);
|
||||
* routines to create join paths
|
||||
*/
|
||||
extern void add_paths_to_joinrel(Query *root, RelOptInfo *joinrel,
|
||||
RelOptInfo *outerrel,
|
||||
RelOptInfo *innerrel,
|
||||
List *restrictlist);
|
||||
RelOptInfo *outerrel,
|
||||
RelOptInfo *innerrel,
|
||||
List *restrictlist);
|
||||
|
||||
/*
|
||||
* joinrels.c
|
||||
@@ -71,11 +71,11 @@ extern void add_paths_to_joinrel(Query *root, RelOptInfo *joinrel,
|
||||
*/
|
||||
extern void make_rels_by_joins(Query *root, int level);
|
||||
extern RelOptInfo *make_rels_by_clause_joins(Query *root,
|
||||
RelOptInfo *old_rel,
|
||||
List *other_rels);
|
||||
RelOptInfo *old_rel,
|
||||
List *other_rels);
|
||||
extern RelOptInfo *make_rels_by_clauseless_joins(Query *root,
|
||||
RelOptInfo *old_rel,
|
||||
List *other_rels);
|
||||
RelOptInfo *old_rel,
|
||||
List *other_rels);
|
||||
|
||||
/*
|
||||
* pathkeys.c
|
||||
@@ -94,22 +94,22 @@ extern List *canonicalize_pathkeys(Query *root, List *pathkeys);
|
||||
extern PathKeysComparison compare_pathkeys(List *keys1, List *keys2);
|
||||
extern bool pathkeys_contained_in(List *keys1, List *keys2);
|
||||
extern Path *get_cheapest_path_for_pathkeys(List *paths, List *pathkeys,
|
||||
CostSelector cost_criterion);
|
||||
CostSelector cost_criterion);
|
||||
extern Path *get_cheapest_fractional_path_for_pathkeys(List *paths,
|
||||
List *pathkeys,
|
||||
double fraction);
|
||||
List *pathkeys,
|
||||
double fraction);
|
||||
extern List *build_index_pathkeys(Query *root, RelOptInfo *rel,
|
||||
IndexOptInfo *index,
|
||||
ScanDirection scandir);
|
||||
IndexOptInfo *index,
|
||||
ScanDirection scandir);
|
||||
extern List *build_join_pathkeys(List *outer_pathkeys,
|
||||
List *join_rel_tlist,
|
||||
List *equi_key_list);
|
||||
List *join_rel_tlist,
|
||||
List *equi_key_list);
|
||||
extern List *make_pathkeys_for_sortclauses(List *sortclauses,
|
||||
List *tlist);
|
||||
List *tlist);
|
||||
extern List *find_mergeclauses_for_pathkeys(List *pathkeys,
|
||||
List *restrictinfos);
|
||||
List *restrictinfos);
|
||||
extern List *make_pathkeys_for_mergeclauses(Query *root,
|
||||
List *mergeclauses,
|
||||
List *tlist);
|
||||
List *mergeclauses,
|
||||
List *tlist);
|
||||
|
||||
#endif /* PATHS_H */
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: plancat.h,v 1.17 2000/01/26 05:58:20 momjian Exp $
|
||||
* $Id: plancat.h,v 1.18 2000/04/12 17:16:42 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
|
||||
extern void relation_info(Query *root, Index relid,
|
||||
bool *hasindex, long *pages, double *tuples);
|
||||
bool *hasindex, long *pages, double *tuples);
|
||||
|
||||
extern List *find_secondary_indexes(Query *root, Index relid);
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: planmain.h,v 1.38 2000/02/15 20:49:26 tgl Exp $
|
||||
* $Id: planmain.h,v 1.39 2000/04/12 17:16:42 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -21,7 +21,7 @@
|
||||
* prototypes for plan/planmain.c
|
||||
*/
|
||||
extern Plan *query_planner(Query *root, List *tlist, List *qual,
|
||||
double tuple_fraction);
|
||||
double tuple_fraction);
|
||||
|
||||
/*
|
||||
* prototypes for plan/createplan.c
|
||||
@@ -49,7 +49,7 @@ extern void add_missing_rels_to_query(Query *root);
|
||||
*/
|
||||
extern void set_plan_references(Plan *plan);
|
||||
extern List *join_references(List *clauses, List *outer_tlist,
|
||||
List *inner_tlist, Index acceptable_rel);
|
||||
List *inner_tlist, Index acceptable_rel);
|
||||
extern void fix_opids(Node *node);
|
||||
|
||||
/*
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#include "nodes/plannodes.h"
|
||||
|
||||
extern Index PlannerQueryLevel; /* level of current query */
|
||||
extern Index PlannerQueryLevel; /* level of current query */
|
||||
extern List *PlannerInitPlan; /* init subplans for current query */
|
||||
extern List *PlannerParamVar; /* to get Var from Param->paramid */
|
||||
extern int PlannerPlanId; /* to assign unique ID to subquery plans */
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: tlist.h,v 1.24 2000/01/27 18:11:45 tgl Exp $
|
||||
* $Id: tlist.h,v 1.25 2000/04/12 17:16:42 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -30,8 +30,8 @@ extern List *add_to_flat_tlist(List *tlist, List *vars);
|
||||
extern Var *get_expr(TargetEntry *tle);
|
||||
|
||||
extern TargetEntry *get_sortgroupclause_tle(SortClause *sortClause,
|
||||
List *targetList);
|
||||
List *targetList);
|
||||
extern Node *get_sortgroupclause_expr(SortClause *sortClause,
|
||||
List *targetList);
|
||||
List *targetList);
|
||||
|
||||
#endif /* TLIST_H */
|
||||
|
||||
Reference in New Issue
Block a user