Skip to content

Commit fd75329

Browse files
committed
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.
1 parent d657843 commit fd75329

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.574 2009/02/25 11:07:43 heikki Exp $
40+
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.575 2009/03/03 10:42:05 heikki Exp $
4141
*
4242
* NOTES
4343
*
@@ -2500,7 +2500,7 @@ HandleChildCrash(int pid, int exitstatus, const char *procname)
25002500
(errmsg_internal("sending %s to process %d",
25012501
(SendStop ? "SIGSTOP" : "SIGQUIT"),
25022502
(int) StartupPID)));
2503-
signal_child(BgWriterPID, (SendStop ? SIGSTOP : SIGQUIT));
2503+
signal_child(StartupPID, (SendStop ? SIGSTOP : SIGQUIT));
25042504
}
25052505

25062506
/* Take care of the bgwriter too */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy