diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2016-04-06 11:34:02 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2016-04-06 11:34:02 -0400 |
commit | de94e2af184e25576b13cbda8cf825118835d1cd (patch) | |
tree | d230afdbb5a4d1f79778107020f4bd2992a4bc71 /src/backend/optimizer/plan/setrefs.c | |
parent | d25379eb23383f1d2f969e65e0332b47c19aea94 (diff) | |
download | postgresql-de94e2af184e25576b13cbda8cf825118835d1cd.tar.gz postgresql-de94e2af184e25576b13cbda8cf825118835d1cd.zip |
Run pgindent on a batch of (mostly-planner-related) source files.
Getting annoyed at the amount of unrelated chatter I get from pgindent'ing
Rowley's unique-joins patch. Re-indent all the files it touches.
Diffstat (limited to 'src/backend/optimizer/plan/setrefs.c')
-rw-r--r-- | src/backend/optimizer/plan/setrefs.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/backend/optimizer/plan/setrefs.c b/src/backend/optimizer/plan/setrefs.c index dd2b9ed9f08..5537c147ad9 100644 --- a/src/backend/optimizer/plan/setrefs.c +++ b/src/backend/optimizer/plan/setrefs.c @@ -105,7 +105,7 @@ static bool fix_scan_expr_walker(Node *node, fix_scan_expr_context *context); static void set_join_references(PlannerInfo *root, Join *join, int rtoffset); static void set_upper_references(PlannerInfo *root, Plan *plan, int rtoffset); static void set_combineagg_references(PlannerInfo *root, Plan *plan, - int rtoffset); + int rtoffset); static void set_dummy_tlist_references(Plan *plan, int rtoffset); static indexed_tlist *build_tlist_index(List *tlist); static Var *search_indexed_tlist_for_var(Var *var, @@ -120,7 +120,7 @@ static Var *search_indexed_tlist_for_sortgroupref(Node *node, indexed_tlist *itlist, Index newvarno); static Var *search_indexed_tlist_for_partial_aggref(Aggref *aggref, - indexed_tlist *itlist, Index newvarno); + indexed_tlist *itlist, Index newvarno); static List *fix_join_expr(PlannerInfo *root, List *clauses, indexed_tlist *outer_itlist, @@ -136,12 +136,12 @@ static Node *fix_upper_expr(PlannerInfo *root, static Node *fix_upper_expr_mutator(Node *node, fix_upper_expr_context *context); static Node *fix_combine_agg_expr(PlannerInfo *root, - Node *node, - indexed_tlist *subplan_itlist, - Index newvarno, - int rtoffset); + Node *node, + indexed_tlist *subplan_itlist, + Index newvarno, + int rtoffset); static Node *fix_combine_agg_expr_mutator(Node *node, - fix_upper_expr_context *context); + fix_upper_expr_context *context); static List *set_returning_clause_references(PlannerInfo *root, List *rlist, Plan *topplan, @@ -679,7 +679,7 @@ set_plan_refs(PlannerInfo *root, Plan *plan, int rtoffset) break; case T_Agg: { - Agg *aggplan = (Agg *) plan; + Agg *aggplan = (Agg *) plan; if (aggplan->combineStates) set_combineagg_references(root, plan, rtoffset); @@ -2066,7 +2066,7 @@ static Var * search_indexed_tlist_for_partial_aggref(Aggref *aggref, indexed_tlist *itlist, Index newvarno) { - ListCell *lc; + ListCell *lc; foreach(lc, itlist->tlist) { @@ -2106,7 +2106,7 @@ search_indexed_tlist_for_partial_aggref(Aggref *aggref, indexed_tlist *itlist, continue; newvar = makeVarFromTargetEntry(newvarno, tle); - newvar->varnoold = 0; /* wasn't ever a plain Var */ + newvar->varnoold = 0; /* wasn't ever a plain Var */ newvar->varoattno = 0; return newvar; @@ -2392,10 +2392,10 @@ fix_upper_expr_mutator(Node *node, fix_upper_expr_context *context) */ static Node * fix_combine_agg_expr(PlannerInfo *root, - Node *node, - indexed_tlist *subplan_itlist, - Index newvarno, - int rtoffset) + Node *node, + indexed_tlist *subplan_itlist, + Index newvarno, + int rtoffset) { fix_upper_expr_context context; @@ -2445,15 +2445,15 @@ fix_combine_agg_expr_mutator(Node *node, fix_upper_expr_context *context) return fix_param_node(context->root, (Param *) node); if (IsA(node, Aggref)) { - Aggref *aggref = (Aggref *) node; + Aggref *aggref = (Aggref *) node; newvar = search_indexed_tlist_for_partial_aggref(aggref, context->subplan_itlist, context->newvarno); if (newvar) { - Aggref *newaggref; - TargetEntry *newtle; + Aggref *newaggref; + TargetEntry *newtle; /* * Now build a new TargetEntry for the Aggref's arguments which is |