Skip to content

Commit ecc8c36

Browse files
committed
In child-crashed log messages, identify a checkpoint process as such
instead of calling it a 'server process'.
1 parent 8d86a96 commit ecc8c36

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.326 2003/05/09 15:57:24 momjian Exp $
40+
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.327 2003/05/10 18:15:42 tgl Exp $
4141
*
4242
* NOTES
4343
*
@@ -1801,8 +1801,12 @@ reaper(SIGNAL_ARGS)
18011801
goto reaper_done;
18021802
}
18031803

1804+
/*
1805+
* Else do standard child cleanup.
1806+
*/
18041807
CleanupProc(pid, exitstatus);
1805-
}
1808+
1809+
} /* loop over pending child-death reports */
18061810

18071811
if (FatalError)
18081812
{
@@ -1895,7 +1899,10 @@ CleanupProc(int pid,
18951899
/* Make log entry unless we did so already */
18961900
if (!FatalError)
18971901
{
1898-
LogChildExit(LOG, gettext("server process"), pid, exitstatus);
1902+
LogChildExit(LOG,
1903+
(pid == CheckPointPID) ? gettext("checkpoint process") :
1904+
gettext("server process"),
1905+
pid, exitstatus);
18991906
elog(LOG, "terminating any other active server processes");
19001907
}
19011908

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