Skip to content

Commit 10095ca

Browse files
committed
Log a message when resorting to SIGKILL during shutdown/crash recovery.
Currently, no useful trace is left in the logs when the postmaster is forced to use SIGKILL to shut down children that failed to respond to SIGQUIT. Some questions were raised about how often that scenario happens in the buildfarm, so let's add a LOG-level message showing that it happened. Discussion: https://postgr.es/m/1850884.1599601164@sss.pgh.pa.us
1 parent 6693a96 commit 10095ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1850,6 +1850,8 @@ ServerLoop(void)
18501850
(now - AbortStartTime) >= SIGKILL_CHILDREN_AFTER_SECS)
18511851
{
18521852
/* We were gentle with them before. Not anymore */
1853+
ereport(LOG,
1854+
(errmsg("issuing SIGKILL to recalcitrant children")));
18531855
TerminateChildren(SIGKILL);
18541856
/* reset flag so we don't SIGKILL again */
18551857
AbortStartTime = 0;

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