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:
@@ -61,61 +61,61 @@ typedef struct reduce_outer_joins_state
|
||||
} reduce_outer_joins_state;
|
||||
|
||||
static Node *pull_up_sublinks_jointree_recurse(PlannerInfo *root, Node *jtnode,
|
||||
Relids *relids);
|
||||
Relids *relids);
|
||||
static Node *pull_up_sublinks_qual_recurse(PlannerInfo *root, Node *node,
|
||||
Node **jtlink1, Relids available_rels1,
|
||||
Node **jtlink2, Relids available_rels2);
|
||||
Node **jtlink1, Relids available_rels1,
|
||||
Node **jtlink2, Relids available_rels2);
|
||||
static Node *pull_up_subqueries_recurse(PlannerInfo *root, Node *jtnode,
|
||||
JoinExpr *lowest_outer_join,
|
||||
JoinExpr *lowest_nulling_outer_join,
|
||||
AppendRelInfo *containing_appendrel);
|
||||
JoinExpr *lowest_outer_join,
|
||||
JoinExpr *lowest_nulling_outer_join,
|
||||
AppendRelInfo *containing_appendrel);
|
||||
static Node *pull_up_simple_subquery(PlannerInfo *root, Node *jtnode,
|
||||
RangeTblEntry *rte,
|
||||
JoinExpr *lowest_outer_join,
|
||||
JoinExpr *lowest_nulling_outer_join,
|
||||
AppendRelInfo *containing_appendrel);
|
||||
RangeTblEntry *rte,
|
||||
JoinExpr *lowest_outer_join,
|
||||
JoinExpr *lowest_nulling_outer_join,
|
||||
AppendRelInfo *containing_appendrel);
|
||||
static Node *pull_up_simple_union_all(PlannerInfo *root, Node *jtnode,
|
||||
RangeTblEntry *rte);
|
||||
RangeTblEntry *rte);
|
||||
static void pull_up_union_leaf_queries(Node *setOp, PlannerInfo *root,
|
||||
int parentRTindex, Query *setOpQuery,
|
||||
int childRToffset);
|
||||
int parentRTindex, Query *setOpQuery,
|
||||
int childRToffset);
|
||||
static void make_setop_translation_list(Query *query, Index newvarno,
|
||||
List **translated_vars);
|
||||
List **translated_vars);
|
||||
static bool is_simple_subquery(Query *subquery, RangeTblEntry *rte,
|
||||
JoinExpr *lowest_outer_join);
|
||||
JoinExpr *lowest_outer_join);
|
||||
static Node *pull_up_simple_values(PlannerInfo *root, Node *jtnode,
|
||||
RangeTblEntry *rte);
|
||||
RangeTblEntry *rte);
|
||||
static bool is_simple_values(PlannerInfo *root, RangeTblEntry *rte);
|
||||
static bool is_simple_union_all(Query *subquery);
|
||||
static bool is_simple_union_all_recurse(Node *setOp, Query *setOpQuery,
|
||||
List *colTypes);
|
||||
List *colTypes);
|
||||
static bool is_safe_append_member(Query *subquery);
|
||||
static bool jointree_contains_lateral_outer_refs(Node *jtnode, bool restricted,
|
||||
Relids safe_upper_varnos);
|
||||
Relids safe_upper_varnos);
|
||||
static void replace_vars_in_jointree(Node *jtnode,
|
||||
pullup_replace_vars_context *context,
|
||||
JoinExpr *lowest_nulling_outer_join);
|
||||
pullup_replace_vars_context *context,
|
||||
JoinExpr *lowest_nulling_outer_join);
|
||||
static Node *pullup_replace_vars(Node *expr,
|
||||
pullup_replace_vars_context *context);
|
||||
pullup_replace_vars_context *context);
|
||||
static Node *pullup_replace_vars_callback(Var *var,
|
||||
replace_rte_variables_context *context);
|
||||
replace_rte_variables_context *context);
|
||||
static Query *pullup_replace_vars_subquery(Query *query,
|
||||
pullup_replace_vars_context *context);
|
||||
pullup_replace_vars_context *context);
|
||||
static reduce_outer_joins_state *reduce_outer_joins_pass1(Node *jtnode);
|
||||
static void reduce_outer_joins_pass2(Node *jtnode,
|
||||
reduce_outer_joins_state *state,
|
||||
PlannerInfo *root,
|
||||
Relids nonnullable_rels,
|
||||
List *nonnullable_vars,
|
||||
List *forced_null_vars);
|
||||
reduce_outer_joins_state *state,
|
||||
PlannerInfo *root,
|
||||
Relids nonnullable_rels,
|
||||
List *nonnullable_vars,
|
||||
List *forced_null_vars);
|
||||
static Node *remove_useless_results_recurse(PlannerInfo *root, Node *jtnode);
|
||||
static int get_result_relid(PlannerInfo *root, Node *jtnode);
|
||||
static void remove_result_refs(PlannerInfo *root, int varno, Node *newjtloc);
|
||||
static bool find_dependent_phvs(Node *node, int varno);
|
||||
static void substitute_phv_relids(Node *node,
|
||||
int varno, Relids subrelids);
|
||||
int varno, Relids subrelids);
|
||||
static void fix_append_rel_relids(List *append_rel_list, int varno,
|
||||
Relids subrelids);
|
||||
Relids subrelids);
|
||||
static Node *find_jointree_node_for_rel(Node *jtnode, int relid);
|
||||
|
||||
|
||||
|
@@ -54,7 +54,7 @@
|
||||
|
||||
|
||||
static List *expand_targetlist(List *tlist, int command_type,
|
||||
Index result_relation, Relation rel);
|
||||
Index result_relation, Relation rel);
|
||||
|
||||
|
||||
/*
|
||||
|
@@ -47,42 +47,42 @@
|
||||
|
||||
|
||||
static RelOptInfo *recurse_set_operations(Node *setOp, PlannerInfo *root,
|
||||
List *colTypes, List *colCollations,
|
||||
bool junkOK,
|
||||
int flag, List *refnames_tlist,
|
||||
List **pTargetList,
|
||||
double *pNumGroups);
|
||||
List *colTypes, List *colCollations,
|
||||
bool junkOK,
|
||||
int flag, List *refnames_tlist,
|
||||
List **pTargetList,
|
||||
double *pNumGroups);
|
||||
static RelOptInfo *generate_recursion_path(SetOperationStmt *setOp,
|
||||
PlannerInfo *root,
|
||||
List *refnames_tlist,
|
||||
List **pTargetList);
|
||||
PlannerInfo *root,
|
||||
List *refnames_tlist,
|
||||
List **pTargetList);
|
||||
static RelOptInfo *generate_union_paths(SetOperationStmt *op, PlannerInfo *root,
|
||||
List *refnames_tlist,
|
||||
List **pTargetList);
|
||||
List *refnames_tlist,
|
||||
List **pTargetList);
|
||||
static RelOptInfo *generate_nonunion_paths(SetOperationStmt *op, PlannerInfo *root,
|
||||
List *refnames_tlist,
|
||||
List **pTargetList);
|
||||
List *refnames_tlist,
|
||||
List **pTargetList);
|
||||
static List *plan_union_children(PlannerInfo *root,
|
||||
SetOperationStmt *top_union,
|
||||
List *refnames_tlist,
|
||||
List **tlist_list);
|
||||
SetOperationStmt *top_union,
|
||||
List *refnames_tlist,
|
||||
List **tlist_list);
|
||||
static Path *make_union_unique(SetOperationStmt *op, Path *path, List *tlist,
|
||||
PlannerInfo *root);
|
||||
PlannerInfo *root);
|
||||
static void postprocess_setop_rel(PlannerInfo *root, RelOptInfo *rel);
|
||||
static bool choose_hashed_setop(PlannerInfo *root, List *groupClauses,
|
||||
Path *input_path,
|
||||
double dNumGroups, double dNumOutputRows,
|
||||
const char *construct);
|
||||
Path *input_path,
|
||||
double dNumGroups, double dNumOutputRows,
|
||||
const char *construct);
|
||||
static List *generate_setop_tlist(List *colTypes, List *colCollations,
|
||||
int flag,
|
||||
Index varno,
|
||||
bool hack_constants,
|
||||
List *input_tlist,
|
||||
List *refnames_tlist);
|
||||
int flag,
|
||||
Index varno,
|
||||
bool hack_constants,
|
||||
List *input_tlist,
|
||||
List *refnames_tlist);
|
||||
static List *generate_append_tlist(List *colTypes, List *colCollations,
|
||||
bool flag,
|
||||
List *input_tlists,
|
||||
List *refnames_tlist);
|
||||
bool flag,
|
||||
List *input_tlists,
|
||||
List *refnames_tlist);
|
||||
static List *generate_setop_grouplist(SetOperationStmt *op, List *targetlist);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user