Warn if LOCKTAG_TUPLE is held at commit, under debug_assertions.
authorNoah Misch <[email protected]>
Tue, 24 Sep 2024 22:25:18 +0000 (15:25 -0700)
committerNoah Misch <[email protected]>
Tue, 24 Sep 2024 22:25:18 +0000 (15:25 -0700)
commitdbf3f974ee04d24547690268b1fc2b7eb12b4ebc
tree6da463710baa3391e279d17121f295738fb183d1
parentac30021356e7aa05a069741d17c3db3e8d520933
Warn if LOCKTAG_TUPLE is held at commit, under debug_assertions.

The current use always releases this locktag.  A planned use will
continue that intent.  It will involve more areas of code, making unlock
omissions easier.  Warn under debug_assertions, like we do for various
resource leaks.  Back-patch to v12 (all supported versions), the plan
for the commit of the new use.

Reviewed by Heikki Linnakangas.

Discussion: https://postgr.es/m/20240512232923[email protected]
src/backend/storage/lmgr/lock.c