File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 5252AllocateCollectorMem (void )
5353{
5454 bool found ;
55- Size segsize = CollectorShmemSize ();
55+ Size segsize = CollectorShmemSize ();
5656
5757 pgsw = ShmemInitStruct ("pg_stat_wait" , segsize , & found );
5858
@@ -96,7 +96,7 @@ RegisterWaitsCollector(void)
9696 /* set up common data for all our workers */
9797 worker .bgw_flags = BGWORKER_SHMEM_ACCESS |
9898 BGWORKER_BACKEND_DATABASE_CONNECTION ;
99- worker .bgw_start_time = BgWorkerStart_RecoveryFinished ;
99+ worker .bgw_start_time = BgWorkerStart_ConsistentState ;
100100 worker .bgw_restart_time = BGW_NEVER_RESTART ;
101101 worker .bgw_main = collector_main ;
102102 worker .bgw_notify_pid = 0 ;
@@ -233,6 +233,7 @@ collector_main(Datum main_arg)
233233 BackgroundWorkerUnblockSignals ();
234234
235235 hdr -> latch = & MyProc -> procLatch ;
236+
236237 CurrentResourceOwner = ResourceOwnerCreate (NULL , "pg_stat_wait collector" );
237238 collector_context = AllocSetContextCreate (TopMemoryContext ,
238239 "pg_stat_wait context" ,
You can’t perform that action at this time.
0 commit comments