Change ProcSendSignal() to take pgprocno.

Thomas Munro <tmunro@postgresql.org>

Commit: a13db0e16404ae532fe037071c7fe2576a1f8890
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2021-12-16T02:56:03Z
Releases: 15.0
Change ProcSendSignal() to take pgprocno.

Instead of referring to target backends by pid, use pgprocno.  This
means that we don't have to scan the ProcArray and we can drop some
special case code for dealing with the startup process.

Discussion: https://postgr.es/m/CA%2BhUKGLYRyDaneEwz5Uya_OgFLMx5BgJfkQSD%3Dq9HmwsfRRb-w%40mail.gmail.com
Reviewed-by: Soumyadeep Chakraborty <soumyadeep2007@gmail.com>
Reviewed-by: Ashwin Agrawal <ashwinstar@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>

Files

Discussion