pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Move declarations related to locktags from lock.h to new locktag
Date: Sat, 21 Mar 2026 05:50:11 +0000
Message-ID: <E1w3pDu-000kOn-1o@gemulon.postgresql.org> (raw)

Move declarations related to locktags from lock.h to new locktag.h

This commit moves all the declarations related to locktags from lock.h
to a new header called locktag.h.  This header is useful so as code
paths that care about locktags but not the lock hashtable can know about
these without having to include lock.h and all its set of dependencies.

This move includes the basic locktag structures and the set of macros to
fill in the locktag fields before attempting to acquire a lock.

Based on a suggestion from me, suggestion done while discussing a
different feature.

Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/abufUya2oK-_PJ3E@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/322bab79744dfb8f7ddb5191b3102cf7986d14a0

Modified Files
--------------
src/include/storage/lock.h    | 173 +-------------------------------------
src/include/storage/locktag.h | 190 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 191 insertions(+), 172 deletions(-)



Message-ID: <E1w3pDu-000kOn-1o@gemulon.postgresql.org>
Permalink:  ../E1w3pDu-000kOn-1o@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1w3pDu-000kOn-1o@gemulon.postgresql.org

 · 

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: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Move declarations related to locktags from lock.h to new locktag
  In-Reply-To: <E1w3pDu-000kOn-1o@gemulon.postgresql.org>

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

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