pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve log message about termination of background workers.
Date: Mon, 30 Nov 2020 02:09:12 +0000
Message-ID: <E1kjYcq-0006Ub-Dn@gemulon.postgresql.org> (raw)

Improve log message about termination of background workers.

Previously the shutdown of a background worker that uses die() as
SIGTERM signal handler produced the log message "terminating
connection due to administrator command". This log message was
confusing because a background worker is not a connection.
This commit improves that log message to "terminating background
worker XXX due to administrator command" (XXX is replaced with
the name of the background worker). This is the same log message
as another SIGTERM signal handler bgworker_die() for a background
worker reports.

Author: Bharath Rupireddy
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/3f292fbb-f155-9a01-7cb2-7ccc9007ab3f@oss.nttdata.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/98e2d58d66c81d9f1e49813c1acd4d7312089f4a

Modified Files
--------------
src/backend/tcop/postgres.c | 5 +++++
1 file changed, 5 insertions(+)



Message-ID: <E1kjYcq-0006Ub-Dn@gemulon.postgresql.org>
Permalink:  ../E1kjYcq-0006Ub-Dn@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kjYcq-0006Ub-Dn@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: fujii@postgresql.org
  Subject: Re: pgsql: Improve log message about termination of background workers.
  In-Reply-To: <E1kjYcq-0006Ub-Dn@gemulon.postgresql.org>
  References: <E1kjYcq-0006Ub-Dn@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox