aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/backend/storage/ipc/signalfuncs.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/backend/storage/ipc/signalfuncs.c b/src/backend/storage/ipc/signalfuncs.c
index 45a86b07583..6e310b14ebd 100644
--- a/src/backend/storage/ipc/signalfuncs.c
+++ b/src/backend/storage/ipc/signalfuncs.c
@@ -57,6 +57,10 @@ pg_signal_backend(int pid, int sig)
* arbitrary process to prevent that. But since so far all the callers of
* this mechanism involve some request for ending the process anyway, that
* it might end on its own first is not a problem.
+ *
+ * Note that proc will also be NULL if the pid refers to an auxiliary
+ * process or the postmaster (neither of which can be signaled via
+ * pg_signal_backend()).
*/
if (proc == NULL)
{
@@ -65,7 +69,8 @@ pg_signal_backend(int pid, int sig)
* if one backend terminated on its own during the run.
*/
ereport(WARNING,
- (errmsg("PID %d is not a PostgreSQL server process", pid)));
+ (errmsg("PID %d is not a PostgreSQL backend process", pid)));
+
return SIGNAL_BACKEND_ERROR;
}