mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
pgindent run before PG 9.1 beta 1.
This commit is contained in:
@ -631,7 +631,7 @@ check_ungrouped_columns_walker(Node *node,
|
||||
|
||||
/*
|
||||
* Check whether the Var is known functionally dependent on the GROUP
|
||||
* BY columns. If so, we can allow the Var to be used, because the
|
||||
* BY columns. If so, we can allow the Var to be used, because the
|
||||
* grouping is really a no-op for this table. However, this deduction
|
||||
* depends on one or more constraints of the table, so we have to add
|
||||
* those constraints to the query's constraintDeps list, because it's
|
||||
@ -642,11 +642,11 @@ check_ungrouped_columns_walker(Node *node,
|
||||
* Because this is a pretty expensive check, and will have the same
|
||||
* outcome for all columns of a table, we remember which RTEs we've
|
||||
* already proven functional dependency for in the func_grouped_rels
|
||||
* list. This test also prevents us from adding duplicate entries
|
||||
* to the constraintDeps list.
|
||||
* list. This test also prevents us from adding duplicate entries to
|
||||
* the constraintDeps list.
|
||||
*/
|
||||
if (list_member_int(*context->func_grouped_rels, var->varno))
|
||||
return false; /* previously proven acceptable */
|
||||
return false; /* previously proven acceptable */
|
||||
|
||||
Assert(var->varno > 0 &&
|
||||
(int) var->varno <= list_length(context->pstate->p_rtable));
|
||||
@ -661,7 +661,7 @@ check_ungrouped_columns_walker(Node *node,
|
||||
{
|
||||
*context->func_grouped_rels =
|
||||
lappend_int(*context->func_grouped_rels, var->varno);
|
||||
return false; /* acceptable */
|
||||
return false; /* acceptable */
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user