From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Change ProcSendSignal() to take pgprocno.
Date: Thu, 16 Dec 2021 02:59:47 +0000
Message-ID: <E1mxgzj-0000cY-SG@gemulon.postgresql.org> (raw)
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>
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/a13db0e16404ae532fe037071c7fe2576a1f8890
Modified Files
--------------
src/backend/access/transam/xlog.c | 3 --
src/backend/storage/buffer/buf_init.c | 3 +-
src/backend/storage/buffer/bufmgr.c | 10 +++----
src/backend/storage/lmgr/predicate.c | 6 +++-
src/backend/storage/lmgr/proc.c | 50 ++++---------------------------
src/include/storage/buf_internals.h | 8 ++---
src/include/storage/predicate_internals.h | 1 +
src/include/storage/proc.h | 6 +---
8 files changed, 23 insertions(+), 64 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tmunro@postgresql.org
Subject: Re: pgsql: Change ProcSendSignal() to take pgprocno.
In-Reply-To: <E1mxgzj-0000cY-SG@gemulon.postgresql.org>
References: <E1mxgzj-0000cY-SG@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox