git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6693a96)
Log a message when resorting to SIGKILL during shutdown/crash recovery.
2020年9月11日 16:24:46 +0000 (12:24 -0400)
2020年9月11日 16:24:46 +0000 (12:24 -0400)
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


diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c
index 081022a20658f44abb16a7874d780c9ba027d346..3cd6fa30eb0a050f5af0ee0e6c8baea6aa3642ee 100644 (file)
--- a/src/backend/postmaster/postmaster.c
+++ b/src/backend/postmaster/postmaster.c
@@ -1850,6 +1850,8 @@ ServerLoop(void)
(now - AbortStartTime) >= SIGKILL_CHILDREN_AFTER_SECS)
{
/* We were gentle with them before. Not anymore */
+ ereport(LOG,
+ (errmsg("issuing SIGKILL to recalcitrant children")));
TerminateChildren(SIGKILL);
/* reset flag so we don't SIGKILL again */
AbortStartTime = 0;
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /