Fix copy-pasto in the patch to allow background writer to run during
authorHeikki Linnakangas
Tue, 3 Mar 2009 10:42:05 +0000 (10:42 +0000)
committerHeikki Linnakangas
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 f7637d15db2c2e35e8d09329ed6876b939877e45..0ca52dc1c71cd9bc7b2b81f58905b81127c671cc 100644 (file)
@@ -37,7 +37,7 @@
  *
  *
  * IDENTIFICATION
- *   $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.574 2009/02/25 11:07:43 heikki Exp $
+ *   $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.575 2009/03/03 10:42:05 heikki Exp $
  *
  * NOTES
  *
@@ -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 */