Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfd75329

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 (orany other child process, but those two are the only ones running), sendSIGQUIT to the startup process using correct pid.
1 parentd657843 commitfd75329

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)

[8]ページ先頭

©2009-2025 Movatter.jp