]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Change ProcSendSignal() to take pgprocno.
authorThomas Munro <tmunro@postgresql.org>
Wed, 15 Dec 2021 23:40:15 +0000 (12:40 +1300)
committerThomas Munro <tmunro@postgresql.org>
Thu, 16 Dec 2021 02:56:03 +0000 (15:56 +1300)
commita13db0e16404ae532fe037071c7fe2576a1f8890
treedc19c338b46532e1f8a5b7688c2ac53a39738677
parentbbc227e951ecc59a29205be4952a623e7d1dd534
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>
src/backend/access/transam/xlog.c
src/backend/storage/buffer/buf_init.c
src/backend/storage/buffer/bufmgr.c
src/backend/storage/lmgr/predicate.c
src/backend/storage/lmgr/proc.c
src/include/storage/buf_internals.h
src/include/storage/predicate_internals.h
src/include/storage/proc.h