pgsql: Move ProcStructLock to the ProcGlobal struct - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Move ProcStructLock to the ProcGlobal struct
Date
Msg-id E1vqBj3-000Cdg-1S@gemulon.postgresql.org
Whole thread Raw
List 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.evan.chao@gmail.com>
Reviewed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.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(-)


pgsql-committers by date:

Previous
From: Dean Rasheed
Date:
Subject: pgsql: doc: Mention all SELECT privileges required by INSERT ... ON CON
Next
From: Álvaro Herrera
Date:
Subject: pgsql: Cleanup for log_min_messages changes in 38e0190ced71