diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2022-07-16 15:47:27 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2022-07-16 15:47:27 +0200 |
commit | 506428d091760650971433f6bc083531c307b368 (patch) | |
tree | 2d46d31342e3413a584421c62b3323e42fdb812b /contrib/postgres_fdw/postgres_fdw.c | |
parent | b449afb582bb9015bfbb85abc10ce122aef9ec70 (diff) | |
download | postgresql-506428d091760650971433f6bc083531c307b368.tar.gz postgresql-506428d091760650971433f6bc083531c307b368.zip |
Attempt to fix compiler warning on old compiler
A couple more like b449afb582bb9015bfbb85abc10ce122aef9ec70, per
complaints from lapwing.
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
-rw-r--r-- | contrib/postgres_fdw/postgres_fdw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/postgres_fdw/postgres_fdw.c b/contrib/postgres_fdw/postgres_fdw.c index cfac5390084..955a428e3da 100644 --- a/contrib/postgres_fdw/postgres_fdw.c +++ b/contrib/postgres_fdw/postgres_fdw.c @@ -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); |