pgsql: Change ProcSendSignal() to take pgprocno.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Change ProcSendSignal() to take pgprocno.
Date: 2021-12-16 02:59:47
Message-ID: E1mxgzj-0000cY-SG@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)gmail(dot)com>
Reviewed-by: Ashwin Agrawal <ashwinstar(at)gmail(dot)com>
Reviewed-by: Andres Freund <andres(at)anarazel(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2021-12-16 06:19:35 pgsql: doc: Add note about postgres_fdw.application_name.
Previous Message Tom Lane 2021-12-15 23:58:30 pgsql: Always use ReleaseTupleDesc after lookup_rowtype_tupdesc et al.