Improve warning message in pg_signal_backend()
authorJohn Naylor <john.naylor@postgresql.org>
Tue, 7 Dec 2021 22:31:47 +0000 (22:31 +0000)
committerJohn Naylor <john.naylor@postgresql.org>
Tue, 11 Jan 2022 17:56:26 +0000 (12:56 -0500)
commit7fa945b857cc1b2964799411f1633468826861ff
tree5b495024cf14e8996856867c0822e09b03512054
parent9cb5518b7ff69ab3bbc422313c69d54696fe8472
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
src/backend/storage/ipc/signalfuncs.c