File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -814,11 +814,12 @@ apw_detach_shmem(int code, Datum arg)
814814static void
815815apw_start_leader_worker (void )
816816{
817- BackgroundWorker worker = { 0 } ;
817+ BackgroundWorker worker ;
818818 BackgroundWorkerHandle * handle ;
819819 BgwHandleStatus status ;
820820 pid_t pid ;
821821
822+ MemSet (& worker , 0 , sizeof (BackgroundWorker ));
822823 worker .bgw_flags = BGWORKER_SHMEM_ACCESS ;
823824 worker .bgw_start_time = BgWorkerStart_ConsistentState ;
824825 strcpy (worker .bgw_library_name , "pg_prewarm" );
@@ -855,9 +856,10 @@ apw_start_leader_worker(void)
855856static void
856857apw_start_database_worker (void )
857858{
858- BackgroundWorker worker = { 0 } ;
859+ BackgroundWorker worker ;
859860 BackgroundWorkerHandle * handle ;
860861
862+ MemSet (& worker , 0 , sizeof (BackgroundWorker ));
861863 worker .bgw_flags =
862864 BGWORKER_SHMEM_ACCESS | BGWORKER_BACKEND_DATABASE_CONNECTION ;
863865 worker .bgw_start_time = BgWorkerStart_ConsistentState ;
Original file line number Diff line number Diff line change @@ -3307,7 +3307,7 @@ estimate_path_cost_size(PlannerInfo *root,
33073307 {
33083308 RelOptInfo * outerrel = fpinfo -> outerrel ;
33093309 PgFdwRelationInfo * ofpinfo ;
3310- AggClauseCosts aggcosts = { 0 } ;
3310+ AggClauseCosts aggcosts ;
33113311 double input_rows ;
33123312 int numGroupCols ;
33133313 double numGroups = 1 ;
@@ -3331,6 +3331,7 @@ estimate_path_cost_size(PlannerInfo *root,
33313331 input_rows = ofpinfo -> rows ;
33323332
33333333 /* Collect statistics about aggregates for estimating costs. */
3334+ MemSet (& aggcosts , 0 , sizeof (AggClauseCosts ));
33343335 if (root -> parse -> hasAggs )
33353336 {
33363337 get_agg_clause_costs (root , AGGSPLIT_SIMPLE , & aggcosts );
You can’t perform that action at this time.
0 commit comments