File tree 2 files changed +6
-3
lines changed
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)
814
814
static void
815
815
apw_start_leader_worker (void )
816
816
{
817
- BackgroundWorker worker = { 0 } ;
817
+ BackgroundWorker worker ;
818
818
BackgroundWorkerHandle * handle ;
819
819
BgwHandleStatus status ;
820
820
pid_t pid ;
821
821
822
+ MemSet (& worker , 0 , sizeof (BackgroundWorker ));
822
823
worker .bgw_flags = BGWORKER_SHMEM_ACCESS ;
823
824
worker .bgw_start_time = BgWorkerStart_ConsistentState ;
824
825
strcpy (worker .bgw_library_name , "pg_prewarm" );
@@ -855,9 +856,10 @@ apw_start_leader_worker(void)
855
856
static void
856
857
apw_start_database_worker (void )
857
858
{
858
- BackgroundWorker worker = { 0 } ;
859
+ BackgroundWorker worker ;
859
860
BackgroundWorkerHandle * handle ;
860
861
862
+ MemSet (& worker , 0 , sizeof (BackgroundWorker ));
861
863
worker .bgw_flags =
862
864
BGWORKER_SHMEM_ACCESS | BGWORKER_BACKEND_DATABASE_CONNECTION ;
863
865
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,
3307
3307
{
3308
3308
RelOptInfo * outerrel = fpinfo -> outerrel ;
3309
3309
PgFdwRelationInfo * ofpinfo ;
3310
- AggClauseCosts aggcosts = { 0 } ;
3310
+ AggClauseCosts aggcosts ;
3311
3311
double input_rows ;
3312
3312
int numGroupCols ;
3313
3313
double numGroups = 1 ;
@@ -3331,6 +3331,7 @@ estimate_path_cost_size(PlannerInfo *root,
3331
3331
input_rows = ofpinfo -> rows ;
3332
3332
3333
3333
/* Collect statistics about aggregates for estimating costs. */
3334
+ MemSet (& aggcosts , 0 , sizeof (AggClauseCosts ));
3334
3335
if (root -> parse -> hasAggs )
3335
3336
{
3336
3337
get_agg_clause_costs (root , AGGSPLIT_SIMPLE , & aggcosts );
You can’t perform that action at this time.
0 commit comments