pgsql: Improve warning message in pg_signal_backend() - Mailing list pgsql-committers

From John Naylor
Subject pgsql: Improve warning message in pg_signal_backend()
Date
Msg-id E1n7LR2-00038U-B9@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Improve warning message in pg_signal_backend()

Previously, invoking pg_terminate_backend() or pg_cancel_backend()
with the postmaster PID produced a "PID XXXX is not a PostgresSQL
server process" warning, which does not make sense. Change to
"backend process" to make the message more exact.

Nathan Bossart, based on an idea from Bharath Rupireddy with
input from Tom Lane and Euler Taveira

Discussion:
https://www.postgresql.org/message-id/flat/CALj2ACW7Rr-R7mBcBQiXWPp=JV5chajjTdudLiF5YcpW-BmHhg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7fa945b857cc1b2964799411f1633468826861ff

Modified Files
--------------
src/backend/storage/ipc/signalfuncs.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Clean up error message reported after \password encryption failu
Next
From: Tom Lane
Date:
Subject: pgsql: Clean up messy API for src/port/thread.c.