Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit fcb6780

Browse files
committed
Fix restart of stats collector
1 parent 2635400 commit fcb6780

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,7 @@ UpgradePostgres(void)
777777
if (*OnlineUpgradePath == '\0')
778778
elog(ERROR, "Online upgrade path was not specified: alter system set online_ugrade_path='...' ; select pg_reload_conf()");
779779

780+
PG_SETMASK(&BlockSig);
780781
IsOnlineUpgrade = true;
781782
TerminateChildren(SIGTERM);
782783
if (CheckpointerPID != 0)
@@ -4341,7 +4342,7 @@ TerminateChildren(int signal)
43414342
if (PgArchPID != 0)
43424343
signal_child(PgArchPID, signal);
43434344
if (PgStatPID != 0)
4344-
signal_child(PgStatPID, signal);
4345+
signal_child(PgStatPID, IsOnlineUpgrade ? SIGQUIT : signal);
43454346
}
43464347

43474348
/*

0 commit comments

Comments
 (0)