mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Phase 2 pgindent run for v12.
Switch to 2.1 version of pg_bsd_indent. This formats multiline function declarations "correctly", that is with additional lines of parameter declarations indented to match where the first line's left parenthesis is. Discussion: https://postgr.es/m/CAEepm=0P3FeTXRcU5B2W3jv3PgRVZ-kGUXLGfd42FFhUROO3ug@mail.gmail.com
This commit is contained in:
@@ -32,13 +32,13 @@ typedef struct
|
||||
} adjust_appendrel_attrs_context;
|
||||
|
||||
static void make_inh_translation_list(Relation oldrelation,
|
||||
Relation newrelation,
|
||||
Index newvarno,
|
||||
List **translated_vars);
|
||||
Relation newrelation,
|
||||
Index newvarno,
|
||||
List **translated_vars);
|
||||
static Node *adjust_appendrel_attrs_mutator(Node *node,
|
||||
adjust_appendrel_attrs_context *context);
|
||||
adjust_appendrel_attrs_context *context);
|
||||
static List *adjust_inherited_tlist(List *tlist,
|
||||
AppendRelInfo *context);
|
||||
AppendRelInfo *context);
|
||||
|
||||
|
||||
/*
|
||||
|
@@ -99,14 +99,14 @@ typedef struct
|
||||
|
||||
static bool contain_agg_clause_walker(Node *node, void *context);
|
||||
static bool get_agg_clause_costs_walker(Node *node,
|
||||
get_agg_clause_costs_context *context);
|
||||
get_agg_clause_costs_context *context);
|
||||
static bool find_window_functions_walker(Node *node, WindowFuncLists *lists);
|
||||
static bool contain_subplans_walker(Node *node, void *context);
|
||||
static bool contain_mutable_functions_walker(Node *node, void *context);
|
||||
static bool contain_volatile_functions_walker(Node *node, void *context);
|
||||
static bool contain_volatile_functions_not_nextval_walker(Node *node, void *context);
|
||||
static bool max_parallel_hazard_walker(Node *node,
|
||||
max_parallel_hazard_context *context);
|
||||
max_parallel_hazard_context *context);
|
||||
static bool contain_nonstrict_functions_walker(Node *node, void *context);
|
||||
static bool contain_context_dependent_node(Node *clause);
|
||||
static bool contain_context_dependent_node_walker(Node *node, int *flags);
|
||||
@@ -115,46 +115,46 @@ static Relids find_nonnullable_rels_walker(Node *node, bool top_level);
|
||||
static List *find_nonnullable_vars_walker(Node *node, bool top_level);
|
||||
static bool is_strict_saop(ScalarArrayOpExpr *expr, bool falseOK);
|
||||
static Node *eval_const_expressions_mutator(Node *node,
|
||||
eval_const_expressions_context *context);
|
||||
eval_const_expressions_context *context);
|
||||
static bool contain_non_const_walker(Node *node, void *context);
|
||||
static bool ece_function_is_safe(Oid funcid,
|
||||
eval_const_expressions_context *context);
|
||||
eval_const_expressions_context *context);
|
||||
static List *simplify_or_arguments(List *args,
|
||||
eval_const_expressions_context *context,
|
||||
bool *haveNull, bool *forceTrue);
|
||||
eval_const_expressions_context *context,
|
||||
bool *haveNull, bool *forceTrue);
|
||||
static List *simplify_and_arguments(List *args,
|
||||
eval_const_expressions_context *context,
|
||||
bool *haveNull, bool *forceFalse);
|
||||
eval_const_expressions_context *context,
|
||||
bool *haveNull, bool *forceFalse);
|
||||
static Node *simplify_boolean_equality(Oid opno, List *args);
|
||||
static Expr *simplify_function(Oid funcid,
|
||||
Oid result_type, int32 result_typmod,
|
||||
Oid result_collid, Oid input_collid, List **args_p,
|
||||
bool funcvariadic, bool process_args, bool allow_non_const,
|
||||
eval_const_expressions_context *context);
|
||||
Oid result_type, int32 result_typmod,
|
||||
Oid result_collid, Oid input_collid, List **args_p,
|
||||
bool funcvariadic, bool process_args, bool allow_non_const,
|
||||
eval_const_expressions_context *context);
|
||||
static List *reorder_function_arguments(List *args, HeapTuple func_tuple);
|
||||
static List *add_function_defaults(List *args, HeapTuple func_tuple);
|
||||
static List *fetch_function_defaults(HeapTuple func_tuple);
|
||||
static void recheck_cast_function_args(List *args, Oid result_type,
|
||||
HeapTuple func_tuple);
|
||||
HeapTuple func_tuple);
|
||||
static Expr *evaluate_function(Oid funcid, Oid result_type, int32 result_typmod,
|
||||
Oid result_collid, Oid input_collid, List *args,
|
||||
bool funcvariadic,
|
||||
HeapTuple func_tuple,
|
||||
eval_const_expressions_context *context);
|
||||
Oid result_collid, Oid input_collid, List *args,
|
||||
bool funcvariadic,
|
||||
HeapTuple func_tuple,
|
||||
eval_const_expressions_context *context);
|
||||
static Expr *inline_function(Oid funcid, Oid result_type, Oid result_collid,
|
||||
Oid input_collid, List *args,
|
||||
bool funcvariadic,
|
||||
HeapTuple func_tuple,
|
||||
eval_const_expressions_context *context);
|
||||
Oid input_collid, List *args,
|
||||
bool funcvariadic,
|
||||
HeapTuple func_tuple,
|
||||
eval_const_expressions_context *context);
|
||||
static Node *substitute_actual_parameters(Node *expr, int nargs, List *args,
|
||||
int *usecounts);
|
||||
int *usecounts);
|
||||
static Node *substitute_actual_parameters_mutator(Node *node,
|
||||
substitute_actual_parameters_context *context);
|
||||
substitute_actual_parameters_context *context);
|
||||
static void sql_inline_error_callback(void *arg);
|
||||
static Query *substitute_actual_srf_parameters(Query *expr,
|
||||
int nargs, List *args);
|
||||
int nargs, List *args);
|
||||
static Node *substitute_actual_srf_parameters_mutator(Node *node,
|
||||
substitute_actual_srf_parameters_context *context);
|
||||
substitute_actual_srf_parameters_context *context);
|
||||
static bool tlist_matches_coltypelist(List *tlist, List *coltypelist);
|
||||
|
||||
|
||||
|
@@ -36,19 +36,19 @@
|
||||
|
||||
|
||||
static void expand_partitioned_rtentry(PlannerInfo *root, RelOptInfo *relinfo,
|
||||
RangeTblEntry *parentrte,
|
||||
Index parentRTindex, Relation parentrel,
|
||||
PlanRowMark *top_parentrc, LOCKMODE lockmode);
|
||||
RangeTblEntry *parentrte,
|
||||
Index parentRTindex, Relation parentrel,
|
||||
PlanRowMark *top_parentrc, LOCKMODE lockmode);
|
||||
static void expand_single_inheritance_child(PlannerInfo *root,
|
||||
RangeTblEntry *parentrte,
|
||||
Index parentRTindex, Relation parentrel,
|
||||
PlanRowMark *top_parentrc, Relation childrel,
|
||||
RangeTblEntry **childrte_p,
|
||||
Index *childRTindex_p);
|
||||
RangeTblEntry *parentrte,
|
||||
Index parentRTindex, Relation parentrel,
|
||||
PlanRowMark *top_parentrc, Relation childrel,
|
||||
RangeTblEntry **childrte_p,
|
||||
Index *childRTindex_p);
|
||||
static Bitmapset *translate_col_privs(const Bitmapset *parent_privs,
|
||||
List *translated_vars);
|
||||
List *translated_vars);
|
||||
static void expand_appendrel_subquery(PlannerInfo *root, RelOptInfo *rel,
|
||||
RangeTblEntry *rte, Index rti);
|
||||
RangeTblEntry *rte, Index rti);
|
||||
|
||||
|
||||
/*
|
||||
|
@@ -27,7 +27,7 @@
|
||||
static bool is_safe_restriction_clause_for(RestrictInfo *rinfo, RelOptInfo *rel);
|
||||
static Expr *extract_or_clause(RestrictInfo *or_rinfo, RelOptInfo *rel);
|
||||
static void consider_new_or_clause(PlannerInfo *root, RelOptInfo *rel,
|
||||
Expr *orclause, RestrictInfo *join_or_rinfo);
|
||||
Expr *orclause, RestrictInfo *join_or_rinfo);
|
||||
|
||||
|
||||
/*
|
||||
|
@@ -55,8 +55,8 @@ static List *translate_sub_tlist(List *tlist, int relid);
|
||||
static int append_total_cost_compare(const void *a, const void *b);
|
||||
static int append_startup_cost_compare(const void *a, const void *b);
|
||||
static List *reparameterize_pathlist_by_child(PlannerInfo *root,
|
||||
List *pathlist,
|
||||
RelOptInfo *child_rel);
|
||||
List *pathlist,
|
||||
RelOptInfo *child_rel);
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
|
@@ -62,22 +62,22 @@ get_relation_info_hook_type get_relation_info_hook = NULL;
|
||||
|
||||
|
||||
static void get_relation_foreign_keys(PlannerInfo *root, RelOptInfo *rel,
|
||||
Relation relation, bool inhparent);
|
||||
Relation relation, bool inhparent);
|
||||
static bool infer_collation_opclass_match(InferenceElem *elem, Relation idxRel,
|
||||
List *idxExprs);
|
||||
List *idxExprs);
|
||||
static List *get_relation_constraints(PlannerInfo *root,
|
||||
Oid relationObjectId, RelOptInfo *rel,
|
||||
bool include_noinherit,
|
||||
bool include_notnull,
|
||||
bool include_partition);
|
||||
Oid relationObjectId, RelOptInfo *rel,
|
||||
bool include_noinherit,
|
||||
bool include_notnull,
|
||||
bool include_partition);
|
||||
static List *build_index_tlist(PlannerInfo *root, IndexOptInfo *index,
|
||||
Relation heapRelation);
|
||||
Relation heapRelation);
|
||||
static List *get_relation_statistics(RelOptInfo *rel, Relation relation);
|
||||
static void set_relation_partition_info(PlannerInfo *root, RelOptInfo *rel,
|
||||
Relation relation);
|
||||
Relation relation);
|
||||
static PartitionScheme find_partition_scheme(PlannerInfo *root, Relation rel);
|
||||
static void set_baserel_partition_key_exprs(Relation relation,
|
||||
RelOptInfo *rel);
|
||||
RelOptInfo *rel);
|
||||
|
||||
/*
|
||||
* get_relation_info -
|
||||
|
@@ -79,9 +79,9 @@ typedef struct PredIterInfoData
|
||||
|
||||
|
||||
static bool predicate_implied_by_recurse(Node *clause, Node *predicate,
|
||||
bool weak);
|
||||
bool weak);
|
||||
static bool predicate_refuted_by_recurse(Node *clause, Node *predicate,
|
||||
bool weak);
|
||||
bool weak);
|
||||
static PredClass predicate_classify(Node *clause, PredIterInfo info);
|
||||
static void list_startup_fn(Node *clause, PredIterInfo info);
|
||||
static Node *list_next_fn(PredIterInfo info);
|
||||
@@ -94,18 +94,18 @@ static void arrayexpr_startup_fn(Node *clause, PredIterInfo info);
|
||||
static Node *arrayexpr_next_fn(PredIterInfo info);
|
||||
static void arrayexpr_cleanup_fn(PredIterInfo info);
|
||||
static bool predicate_implied_by_simple_clause(Expr *predicate, Node *clause,
|
||||
bool weak);
|
||||
bool weak);
|
||||
static bool predicate_refuted_by_simple_clause(Expr *predicate, Node *clause,
|
||||
bool weak);
|
||||
bool weak);
|
||||
static Node *extract_not_arg(Node *clause);
|
||||
static Node *extract_strong_not_arg(Node *clause);
|
||||
static bool clause_is_strict_for(Node *clause, Node *subexpr, bool allow_false);
|
||||
static bool operator_predicate_proof(Expr *predicate, Node *clause,
|
||||
bool refute_it, bool weak);
|
||||
bool refute_it, bool weak);
|
||||
static bool operator_same_subexprs_proof(Oid pred_op, Oid clause_op,
|
||||
bool refute_it);
|
||||
bool refute_it);
|
||||
static bool operator_same_subexprs_lookup(Oid pred_op, Oid clause_op,
|
||||
bool refute_it);
|
||||
bool refute_it);
|
||||
static Oid get_btree_test_op(Oid pred_op, Oid clause_op, bool refute_it);
|
||||
static void InvalidateOprProofCacheCallBack(Datum arg, int cacheid, uint32 hashvalue);
|
||||
|
||||
|
@@ -38,31 +38,31 @@ typedef struct JoinHashEntry
|
||||
} JoinHashEntry;
|
||||
|
||||
static void build_joinrel_tlist(PlannerInfo *root, RelOptInfo *joinrel,
|
||||
RelOptInfo *input_rel);
|
||||
RelOptInfo *input_rel);
|
||||
static List *build_joinrel_restrictlist(PlannerInfo *root,
|
||||
RelOptInfo *joinrel,
|
||||
RelOptInfo *outer_rel,
|
||||
RelOptInfo *inner_rel);
|
||||
RelOptInfo *joinrel,
|
||||
RelOptInfo *outer_rel,
|
||||
RelOptInfo *inner_rel);
|
||||
static void build_joinrel_joinlist(RelOptInfo *joinrel,
|
||||
RelOptInfo *outer_rel,
|
||||
RelOptInfo *inner_rel);
|
||||
RelOptInfo *outer_rel,
|
||||
RelOptInfo *inner_rel);
|
||||
static List *subbuild_joinrel_restrictlist(RelOptInfo *joinrel,
|
||||
List *joininfo_list,
|
||||
List *new_restrictlist);
|
||||
List *joininfo_list,
|
||||
List *new_restrictlist);
|
||||
static List *subbuild_joinrel_joinlist(RelOptInfo *joinrel,
|
||||
List *joininfo_list,
|
||||
List *new_joininfo);
|
||||
List *joininfo_list,
|
||||
List *new_joininfo);
|
||||
static void set_foreign_rel_properties(RelOptInfo *joinrel,
|
||||
RelOptInfo *outer_rel, RelOptInfo *inner_rel);
|
||||
RelOptInfo *outer_rel, RelOptInfo *inner_rel);
|
||||
static void add_join_rel(PlannerInfo *root, RelOptInfo *joinrel);
|
||||
static void build_joinrel_partition_info(RelOptInfo *joinrel,
|
||||
RelOptInfo *outer_rel, RelOptInfo *inner_rel,
|
||||
List *restrictlist, JoinType jointype);
|
||||
RelOptInfo *outer_rel, RelOptInfo *inner_rel,
|
||||
List *restrictlist, JoinType jointype);
|
||||
static void build_child_join_reltarget(PlannerInfo *root,
|
||||
RelOptInfo *parentrel,
|
||||
RelOptInfo *childrel,
|
||||
int nappinfos,
|
||||
AppendRelInfo **appinfos);
|
||||
RelOptInfo *parentrel,
|
||||
RelOptInfo *childrel,
|
||||
int nappinfos,
|
||||
AppendRelInfo **appinfos);
|
||||
|
||||
|
||||
/*
|
||||
|
@@ -22,22 +22,22 @@
|
||||
|
||||
|
||||
static RestrictInfo *make_restrictinfo_internal(Expr *clause,
|
||||
Expr *orclause,
|
||||
bool is_pushed_down,
|
||||
bool outerjoin_delayed,
|
||||
bool pseudoconstant,
|
||||
Index security_level,
|
||||
Relids required_relids,
|
||||
Relids outer_relids,
|
||||
Relids nullable_relids);
|
||||
Expr *orclause,
|
||||
bool is_pushed_down,
|
||||
bool outerjoin_delayed,
|
||||
bool pseudoconstant,
|
||||
Index security_level,
|
||||
Relids required_relids,
|
||||
Relids outer_relids,
|
||||
Relids nullable_relids);
|
||||
static Expr *make_sub_restrictinfos(Expr *clause,
|
||||
bool is_pushed_down,
|
||||
bool outerjoin_delayed,
|
||||
bool pseudoconstant,
|
||||
Index security_level,
|
||||
Relids required_relids,
|
||||
Relids outer_relids,
|
||||
Relids nullable_relids);
|
||||
bool is_pushed_down,
|
||||
bool outerjoin_delayed,
|
||||
bool pseudoconstant,
|
||||
Index security_level,
|
||||
Relids required_relids,
|
||||
Relids outer_relids,
|
||||
Relids nullable_relids);
|
||||
|
||||
|
||||
/*
|
||||
|
@@ -54,9 +54,9 @@ typedef struct
|
||||
} split_pathtarget_context;
|
||||
|
||||
static bool split_pathtarget_walker(Node *node,
|
||||
split_pathtarget_context *context);
|
||||
split_pathtarget_context *context);
|
||||
static void add_sp_item_to_pathtarget(PathTarget *target,
|
||||
split_pathtarget_item *item);
|
||||
split_pathtarget_item *item);
|
||||
static void add_sp_items_to_pathtarget(PathTarget *target, List *items);
|
||||
|
||||
|
||||
|
@@ -67,17 +67,17 @@ typedef struct
|
||||
} flatten_join_alias_vars_context;
|
||||
|
||||
static bool pull_varnos_walker(Node *node,
|
||||
pull_varnos_context *context);
|
||||
pull_varnos_context *context);
|
||||
static bool pull_varattnos_walker(Node *node, pull_varattnos_context *context);
|
||||
static bool pull_vars_walker(Node *node, pull_vars_context *context);
|
||||
static bool contain_var_clause_walker(Node *node, void *context);
|
||||
static bool contain_vars_of_level_walker(Node *node, int *sublevels_up);
|
||||
static bool locate_var_of_level_walker(Node *node,
|
||||
locate_var_of_level_context *context);
|
||||
locate_var_of_level_context *context);
|
||||
static bool pull_var_clause_walker(Node *node,
|
||||
pull_var_clause_context *context);
|
||||
pull_var_clause_context *context);
|
||||
static Node *flatten_join_alias_vars_mutator(Node *node,
|
||||
flatten_join_alias_vars_context *context);
|
||||
flatten_join_alias_vars_context *context);
|
||||
static Relids alias_relid_set(Query *query, Relids relids);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user