Improve warning message in pg_signal_backend()

John Naylor <john.naylor@postgresql.org>

Commit: 7fa945b857cc1b2964799411f1633468826861ff
Author: John Naylor <john.naylor@postgresql.org>
Date: 2022-01-11T17:56:26Z
Releases: 15.0
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

Files

PathChange+/−
src/backend/storage/ipc/signalfuncs.c modified +6 −1

Discussion