Fix copy-pasto in the patch to allow background writer to run during
authorHeikki Linnakangas <heikki@enterprisedb.com>
Tue, 3 Mar 2009 10:42:05 +0000 (10:42 +0000)
committerHeikki Linnakangas <heikki@enterprisedb.com>
Tue, 3 Mar 2009 10:42:05 +0000 (10:42 +0000)
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

index bae413255a2322a48b615159de7d9f083bab4ca5..a427a1b36e1977f25279dca10021cf4942275b1f 100644 (file)
@@ -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 */