1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-27 00:12:01 +03:00

Another pgindent run. Fixes enum indenting, and improves #endif

spacing.  Also adds space for one-line comments.
This commit is contained in:
Bruce Momjian
2001-10-28 06:26:15 +00:00
parent c29797deeb
commit 6783b2372e
525 changed files with 2429 additions and 2049 deletions

View File

@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: xfunc.h,v 1.6 2001/10/25 05:50:06 momjian Exp $
* $Id: xfunc.h,v 1.7 2001/10/28 06:26:08 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -79,4 +79,5 @@ extern bool xfunc_copyrel(RelOptInfo *from, RelOptInfo **to);
* function prototypes for path/predmig.c
*/
extern bool xfunc_do_predmig(Path root);
#endif /* XFUNC_H */

View File

@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: clauses.h,v 1.46 2001/10/25 05:50:05 momjian Exp $
* $Id: clauses.h,v 1.47 2001/10/28 06:26:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -71,4 +71,5 @@ extern void query_tree_mutator(Query *query, Node *(*mutator) (),
#define is_subplan(clause) ((clause) != NULL && \
IsA(clause, Expr) && \
((Expr *) (clause))->opType == SUBPLAN_EXPR)
#endif /* CLAUSES_H */

View File

@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: cost.h,v 1.41 2001/10/25 05:50:05 momjian Exp $
* $Id: cost.h,v 1.42 2001/10/28 06:26:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -94,4 +94,5 @@ extern Selectivity clauselist_selectivity(Query *root,
extern Selectivity clause_selectivity(Query *root,
Node *clause,
int varRelid);
#endif /* COST_H */

View File

@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: geqo.h,v 1.25 2001/10/25 05:50:05 momjian Exp $
* $Id: geqo.h,v 1.26 2001/10/28 06:26:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -48,7 +48,7 @@
/* If you change these, update backend/utils/misc/postgresql.sample.conf */
extern int Geqo_pool_size;
#define DEFAULT_GEQO_POOL_SIZE 0/* = default based on no. of relations. */
#define DEFAULT_GEQO_POOL_SIZE 0 /* = default based on no. of relations. */
#define MIN_GEQO_POOL_SIZE 128
#define MAX_GEQO_POOL_SIZE 1024
@@ -76,4 +76,5 @@ extern Cost geqo_eval(Query *root, List *initial_rels,
extern RelOptInfo *gimme_tree(Query *root, List *initial_rels,
Gene *tour, int num_gene,
int rel_count, RelOptInfo *old_rel);
#endif /* GEQO_H */

View File

@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: geqo_copy.h,v 1.10 2001/10/25 05:50:05 momjian Exp $
* $Id: geqo_copy.h,v 1.11 2001/10/28 06:26:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -25,4 +25,5 @@
#include "optimizer/geqo_gene.h"
extern void geqo_copy(Chromosome *chromo1, Chromosome *chromo2, int string_length);
#endif /* GEQO_COPY_H */

View File

@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: geqo_gene.h,v 1.11 2001/10/25 05:50:05 momjian Exp $
* $Id: geqo_gene.h,v 1.12 2001/10/28 06:26:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -41,4 +41,5 @@ typedef struct Pool
int size;
int string_length;
} Pool;
#endif /* GEQO_GENE_H */

View File

@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: geqo_misc.h,v 1.16 2001/10/25 05:50:05 momjian Exp $
* $Id: geqo_misc.h,v 1.17 2001/10/28 06:26:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -32,4 +32,5 @@ 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_path(Query *root, Path *path, int indent);
extern void geqo_print_joinclauses(Query *root, List *clauses);
#endif /* GEQO_MISC_H */

View File

@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: geqo_mutation.h,v 1.10 2001/10/25 05:50:05 momjian Exp $
* $Id: geqo_mutation.h,v 1.11 2001/10/28 06:26:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -25,4 +25,5 @@
#include "optimizer/geqo_gene.h"
extern void geqo_mutation(Gene *tour, int num_gene);
#endif /* GEQO_MUTATION_H */

View File

@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: geqo_pool.h,v 1.13 2001/10/25 05:50:05 momjian Exp $
* $Id: geqo_pool.h,v 1.14 2001/10/28 06:26:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -37,4 +37,5 @@ extern void free_chromo(Chromosome *chromo);
extern void spread_chromo(Chromosome *chromo, Pool *pool);
extern void sort_pool(Pool *pool);
#endif /* GEQO_POOL_H */

View File

@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: geqo_random.h,v 1.9 2001/10/25 05:50:05 momjian Exp $
* $Id: geqo_random.h,v 1.10 2001/10/28 06:26:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -34,4 +34,5 @@
#define geqo_randint(upper,lower) \
( (int) floor( geqo_rand()*(((upper)-(lower))+0.999999) ) + (lower) )
#endif /* GEQO_RANDOM_H */

View File

@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: geqo_selection.h,v 1.10 2001/10/25 05:50:05 momjian Exp $
* $Id: geqo_selection.h,v 1.11 2001/10/28 06:26:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -26,4 +26,5 @@
#include "optimizer/geqo_gene.h"
extern void geqo_selection(Chromosome *momma, Chromosome *daddy, Pool *pool, double bias);
#endif /* GEQO_SELECTION_H */

View File

@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: joininfo.h,v 1.18 2001/10/25 05:50:05 momjian Exp $
* $Id: joininfo.h,v 1.19 2001/10/28 06:26:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -17,4 +17,5 @@
#include "nodes/relation.h"
extern JoinInfo *find_joininfo_node(RelOptInfo *this_rel, List *join_relids);
#endif /* JOININFO_H */

View File

@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: pathnode.h,v 1.39 2001/10/25 05:50:05 momjian Exp $
* $Id: pathnode.h,v 1.40 2001/10/28 06:26:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -75,4 +75,5 @@ extern RelOptInfo *build_join_rel(Query *root,
RelOptInfo *inner_rel,
JoinType jointype,
List **restrictlist_ptr);
#endif /* PATHNODE_H */

View File

@@ -8,7 +8,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: paths.h,v 1.57 2001/10/25 05:50:05 momjian Exp $
* $Id: paths.h,v 1.58 2001/10/28 06:26:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -88,12 +88,10 @@ extern RelOptInfo *make_jointree_rel(Query *root, Node *jtnode);
*/
typedef enum
{
PATHKEYS_EQUAL, /* pathkeys are identical */
PATHKEYS_BETTER1, /* pathkey 1 is a superset of
* pathkey 2 */
PATHKEYS_BETTER2, /* vice versa */
PATHKEYS_DIFFERENT /* neither pathkey includes the
* other */
PATHKEYS_EQUAL, /* pathkeys are identical */
PATHKEYS_BETTER1, /* pathkey 1 is a superset of pathkey 2 */
PATHKEYS_BETTER2, /* vice versa */
PATHKEYS_DIFFERENT /* neither pathkey includes the other */
} PathKeysComparison;
extern void add_equijoined_keys(Query *root, RestrictInfo *restrictinfo);
@@ -132,4 +130,5 @@ extern int pathkeys_useful_for_ordering(Query *root, List *pathkeys);
extern List *truncate_useless_pathkeys(Query *root,
RelOptInfo *rel,
List *pathkeys);
#endif /* PATHS_H */

View File

@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: plancat.h,v 1.24 2001/10/25 05:50:05 momjian Exp $
* $Id: plancat.h,v 1.25 2001/10/28 06:26:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -36,4 +36,5 @@ extern Selectivity restriction_selectivity(Query *root,
extern Selectivity join_selectivity(Query *root,
Oid operator,
List *args);
#endif /* PLANCAT_H */

View File

@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: planmain.h,v 1.52 2001/10/25 05:50:05 momjian Exp $
* $Id: planmain.h,v 1.53 2001/10/28 06:26:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -67,4 +67,5 @@ extern void fix_opids(Node *node);
extern bool _use_keyset_query_optimizer;
extern void transformKeySetQuery(Query *origNode);
#endif /* PLANMAIN_H */

View File

@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: planner.h,v 1.21 2001/10/25 05:50:06 momjian Exp $
* $Id: planner.h,v 1.22 2001/10/28 06:26:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -23,4 +23,5 @@ extern Plan *subquery_planner(Query *parse, double tuple_fraction);
extern Plan *make_sortplan(Query *parse, List *tlist,
Plan *plannode, List *sortcls);
#endif /* PLANNER_H */

View File

@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: prep.h,v 1.29 2001/10/25 05:50:06 momjian Exp $
* $Id: prep.h,v 1.30 2001/10/28 06:26:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -42,4 +42,5 @@ extern List *expand_inherted_rtentry(Query *parse, Index rti,
extern Node *adjust_inherited_attrs(Node *node,
Index old_rt_index, Oid old_relid,
Index new_rt_index, Oid new_relid);
#endif /* PREP_H */

View File

@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: restrictinfo.h,v 1.12 2001/10/25 05:50:06 momjian Exp $
* $Id: restrictinfo.h,v 1.13 2001/10/28 06:26:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -20,4 +20,5 @@ extern bool restriction_is_or_clause(RestrictInfo *restrictinfo);
extern List *get_actual_clauses(List *restrictinfo_list);
extern void get_actual_join_clauses(List *restrictinfo_list,
List **joinquals, List **otherquals);
#endif /* RESTRICTINFO_H */

View File

@@ -17,4 +17,5 @@ extern int PlannerPlanId; /* to assign unique ID to subquery plans */
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 */

View File

@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: tlist.h,v 1.29 2001/10/25 05:50:06 momjian Exp $
* $Id: tlist.h,v 1.30 2001/10/28 06:26:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -32,4 +32,5 @@ extern TargetEntry *get_sortgroupclause_tle(SortClause *sortClause,
List *targetList);
extern Node *get_sortgroupclause_expr(SortClause *sortClause,
List *targetList);
#endif /* TLIST_H */

View File

@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: var.h,v 1.15 2001/10/25 05:50:06 momjian Exp $
* $Id: var.h,v 1.16 2001/10/28 06:26:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -22,4 +22,5 @@ extern bool contain_var_reference(Node *node, int varno, int varattno,
extern bool contain_whole_tuple_var(Node *node, int varno, int levelsup);
extern bool contain_var_clause(Node *node);
extern List *pull_var_clause(Node *node, bool includeUpperVars);
#endif /* VAR_H */