postmaster: Improve logging of signals sent by postmaster
authorAndres Freund <andres@anarazel.de>
Fri, 10 Jan 2025 16:08:17 +0000 (11:08 -0500)
committerAndres Freund <andres@anarazel.de>
Fri, 10 Jan 2025 16:43:00 +0000 (11:43 -0500)
commit40d4031abd0da3d84543b050e1ced2da775a3274
tree895087c137f80a2c7bb9c1461a7bfcfc5c041795
parent7148cbbdc65d68167967e67ed155c7f1635bc8e7
postmaster: Improve logging of signals sent by postmaster

Previously many, in some cases important, signals we never logged. In other
cases the signal name was only included numerically.

As part of this, change the debug log level the signal is logged at to DEBUG3,
previously some where DEBUG2, some DEBUG4.

Also move from direct use of kill() to signal the av launcher to
signal_child(). There doesn't seem to be a reason for directly using kill().

Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>
Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Reviewed-by: Nazir Bilal Yavuz <byavuz81@gmail.com>
Discussion: https://postgr.es/m/kgng5nrvnlv335evmsuvpnh354rw7qyazl73kdysev2cr2v5zu@m3cfzxicm5kp
src/backend/postmaster/postmaster.c