mirror of
https://github.com/postgres/postgres.git
synced 2025-07-17 06:41:09 +03:00
Pgindent run before 9.1 beta2.
This commit is contained in:
@ -74,6 +74,7 @@ geqo(PlannerInfo *root, int number_of_rels, List *initial_rels)
|
||||
Pool *pool;
|
||||
int pool_size,
|
||||
number_generations;
|
||||
|
||||
#ifdef GEQO_DEBUG
|
||||
int status_interval;
|
||||
#endif
|
||||
|
@ -2687,7 +2687,7 @@ cost_qual_eval_walker(Node *node, cost_qual_eval_context *context)
|
||||
* evaluation of AND/OR? Probably *not*, because that would make the
|
||||
* results depend on the clause ordering, and we are not in any position
|
||||
* to expect that the current ordering of the clauses is the one that's
|
||||
* going to end up being used. The above per-RestrictInfo caching would
|
||||
* going to end up being used. The above per-RestrictInfo caching would
|
||||
* not mix well with trying to re-order clauses anyway.
|
||||
*/
|
||||
if (IsA(node, FuncExpr))
|
||||
|
@ -953,7 +953,7 @@ is_dummy_rel(RelOptInfo *rel)
|
||||
* dummy.
|
||||
*
|
||||
* Also, when called during GEQO join planning, we are in a short-lived
|
||||
* memory context. We must make sure that the dummy path attached to a
|
||||
* memory context. We must make sure that the dummy path attached to a
|
||||
* baserel survives the GEQO cycle, else the baserel is trashed for future
|
||||
* GEQO cycles. On the other hand, when we are marking a joinrel during GEQO,
|
||||
* we don't want the dummy path to clutter the main planning context. Upshot
|
||||
|
@ -3383,9 +3383,9 @@ add_sort_column(AttrNumber colIdx, Oid sortOp, Oid coll, bool nulls_first,
|
||||
* opposite nulls direction is redundant.
|
||||
*
|
||||
* We could probably consider sort keys with the same sortop and
|
||||
* different collations to be redundant too, but for the moment
|
||||
* treat them as not redundant. This will be needed if we ever
|
||||
* support collations with different notions of equality.
|
||||
* different collations to be redundant too, but for the moment treat
|
||||
* them as not redundant. This will be needed if we ever support
|
||||
* collations with different notions of equality.
|
||||
*/
|
||||
if (sortColIdx[i] == colIdx &&
|
||||
sortOperators[numCols] == sortOp &&
|
||||
@ -3419,7 +3419,7 @@ add_sort_column(AttrNumber colIdx, Oid sortOp, Oid coll, bool nulls_first,
|
||||
*
|
||||
* We must convert the pathkey information into arrays of sort key column
|
||||
* numbers, sort operator OIDs, collation OIDs, and nulls-first flags,
|
||||
* which is the representation the executor wants. These are returned into
|
||||
* which is the representation the executor wants. These are returned into
|
||||
* the output parameters *p_numsortkeys etc.
|
||||
*
|
||||
* If the pathkeys include expressions that aren't simple Vars, we will
|
||||
|
@ -1034,8 +1034,8 @@ grouping_planner(PlannerInfo *root, double tuple_fraction)
|
||||
if (parse->hasAggs)
|
||||
{
|
||||
/*
|
||||
* Collect statistics about aggregates for estimating costs.
|
||||
* Note: we do not attempt to detect duplicate aggregates here; a
|
||||
* Collect statistics about aggregates for estimating costs. Note:
|
||||
* we do not attempt to detect duplicate aggregates here; a
|
||||
* somewhat-overestimated cost is okay for our present purposes.
|
||||
*/
|
||||
count_agg_clauses(root, (Node *) tlist, &agg_costs);
|
||||
|
@ -933,10 +933,10 @@ generate_setop_tlist(List *colTypes, List *colCollations,
|
||||
}
|
||||
|
||||
/*
|
||||
* Ensure the tlist entry's exposed collation matches the set-op.
|
||||
* This is necessary because plan_set_operations() reports the result
|
||||
* Ensure the tlist entry's exposed collation matches the set-op. This
|
||||
* is necessary because plan_set_operations() reports the result
|
||||
* ordering as a list of SortGroupClauses, which don't carry collation
|
||||
* themselves but just refer to tlist entries. If we don't show the
|
||||
* themselves but just refer to tlist entries. If we don't show the
|
||||
* right collation then planner.c might do the wrong thing in
|
||||
* higher-level queries.
|
||||
*
|
||||
|
@ -86,7 +86,7 @@ typedef struct
|
||||
static bool contain_agg_clause_walker(Node *node, void *context);
|
||||
static bool pull_agg_clause_walker(Node *node, List **context);
|
||||
static bool count_agg_clauses_walker(Node *node,
|
||||
count_agg_clauses_context *context);
|
||||
count_agg_clauses_context *context);
|
||||
static bool find_window_functions_walker(Node *node, WindowFuncLists *lists);
|
||||
static bool expression_returns_set_rows_walker(Node *node, double *count);
|
||||
static bool contain_subplans_walker(Node *node, void *context);
|
||||
@ -2884,9 +2884,9 @@ eval_const_expressions_mutator(Node *node,
|
||||
/*
|
||||
* We can remove null constants from the list. For a non-null
|
||||
* constant, if it has not been preceded by any other
|
||||
* non-null-constant expressions then it is the result.
|
||||
* Otherwise, it's the next argument, but we can drop following
|
||||
* arguments since they will never be reached.
|
||||
* non-null-constant expressions then it is the result. Otherwise,
|
||||
* it's the next argument, but we can drop following arguments
|
||||
* since they will never be reached.
|
||||
*/
|
||||
if (IsA(e, Const))
|
||||
{
|
||||
|
Reference in New Issue
Block a user