public inbox for [email protected]  
help / color / mirror / Atom feed
From: Heikki Linnakangas <[email protected]>
To: [email protected]
Subject: pgsql: Move ProcStructLock to the ProcGlobal struct
Date: Wed, 11 Feb 2026 15:01:58 +0000
Message-ID: <[email protected]> (raw)

Move ProcStructLock to the ProcGlobal struct

It protects the freeProcs and some other fields in ProcGlobal, so
let's move it there. It's good for cache locality to have it next to
the thing it protects, and just makes more sense anyway. I believe it
was allocated as a separate shared memory area just for historical
reasons.

Reviewed-by: Chao Li <[email protected]>
Reviewed-by: Ashutosh Bapat <[email protected]>
Discussion: https://www.postgresql.org/message-id/[email protected]

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7984ce7a1d21819865e473f17cb6b928cf58a10d

Modified Files
--------------
src/backend/postmaster/launch_backend.c |  3 --
src/backend/storage/lmgr/proc.c         | 50 ++++++++++++---------------------
src/include/storage/proc.h              | 12 +++++++-
3 files changed, 29 insertions(+), 36 deletions(-)



reply

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: pgsql: Move ProcStructLock to the ProcGlobal struct
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox