]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Move declarations related to locktags from lock.h to new locktag.h
authorMichael Paquier <michael@paquier.xyz>
Sat, 21 Mar 2026 05:34:47 +0000 (14:34 +0900)
committerMichael Paquier <michael@paquier.xyz>
Sat, 21 Mar 2026 05:34:47 +0000 (14:34 +0900)
commit322bab79744dfb8f7ddb5191b3102cf7986d14a0
treec08776f42cb99666fbf7b5550f016701e8866e27
parentce8d5fe0e2802158b65699aeae1551d489948167
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
src/include/storage/lock.h
src/include/storage/locktag.h [new file with mode: 0644]