mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
Attempt to fix compiler warning on old compiler
A couple more like b449afb582
, per
complaints from lapwing.
This commit is contained in:
@ -3307,7 +3307,7 @@ estimate_path_cost_size(PlannerInfo *root,
|
||||
{
|
||||
RelOptInfo *outerrel = fpinfo->outerrel;
|
||||
PgFdwRelationInfo *ofpinfo;
|
||||
AggClauseCosts aggcosts = {0};
|
||||
AggClauseCosts aggcosts;
|
||||
double input_rows;
|
||||
int numGroupCols;
|
||||
double numGroups = 1;
|
||||
@ -3331,6 +3331,7 @@ estimate_path_cost_size(PlannerInfo *root,
|
||||
input_rows = ofpinfo->rows;
|
||||
|
||||
/* Collect statistics about aggregates for estimating costs. */
|
||||
MemSet(&aggcosts, 0, sizeof(AggClauseCosts));
|
||||
if (root->parse->hasAggs)
|
||||
{
|
||||
get_agg_clause_costs(root, AGGSPLIT_SIMPLE, &aggcosts);
|
||||
|
Reference in New Issue
Block a user