| From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Move ProcStructLock to the ProcGlobal struct |
| Date: | 2026-02-11 15:01:58 |
| Message-ID: | E1vqBj3-000Cdg-1S@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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 <li(dot)evan(dot)chao(at)gmail(dot)com>
Reviewed-by: Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/b78719db-0c54-409f-b185-b0d59261143f@iki.fi
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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Álvaro Herrera | 2026-02-11 15:39:59 | pgsql: Cleanup for log_min_messages changes in 38e0190ced71 |
| Previous Message | Bertrand Drouvot | 2026-02-11 10:58:41 | Re: PGPROC alignment (was Re: pgsql: Separate RecoveryConflictReasons from procsignals) |