From 72721f3e9ff03471c3cdc1841e5afd5813c870d2 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Tue, 3 Mar 2009 10:42:05 +0000 Subject: [PATCH] Fix copy-pasto in the patch to allow background writer to run during recovery: if background writer or pgstat process dies during recovery (or any other child process, but those two are the only ones running), send SIGQUIT to the startup process using correct pid. --- src/backend/postmaster/postmaster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index bae413255a..a427a1b36e 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -2500,7 +2500,7 @@ HandleChildCrash(int pid, int exitstatus, const char *procname) (errmsg_internal("sending %s to process %d", (SendStop ? "SIGSTOP" : "SIGQUIT"), (int) StartupPID))); - signal_child(BgWriterPID, (SendStop ? SIGSTOP : SIGQUIT)); + signal_child(StartupPID, (SendStop ? SIGSTOP : SIGQUIT)); } /* Take care of the bgwriter too */ -- 2.39.5