pgsql: Remove redundant PGPROC.lockGroupLeaderIdentifier field.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Remove redundant PGPROC.lockGroupLeaderIdentifier field.
Date: 2016-02-22 16:21:17
Message-ID: E1aXtEb-0001hQ-QZ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove redundant PGPROC.lockGroupLeaderIdentifier field.

We don't really need this field, because it's either zero or redundant with
PGPROC.pid. The use of zero to mark "not a group leader" is not necessary
since we can just as well test whether lockGroupLeader is NULL. This does
not save very much, either as to code or data, but the simplification seems
worthwhile anyway.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/73bf8715aa7430bd003516bde448507fbe789c05

Modified Files
--------------
src/backend/storage/lmgr/README | 37 +++++++++++++++++++------------------
src/backend/storage/lmgr/proc.c | 12 ++++++------
src/include/storage/proc.h | 1 -
3 files changed, 25 insertions(+), 25 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-02-22 19:31:57 pgsql: Create a function to reliably identify which sessions block whic
Previous Message Tom Lane 2016-02-22 15:07:37 Re: Re: [COMMITTERS] pgsql: Add some isolation tests for deadlock detection and resolution.