]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Warn if LOCKTAG_TUPLE is held at commit, under debug_assertions.
authorNoah Misch <noah@leadboat.com>
Tue, 24 Sep 2024 22:25:18 +0000 (15:25 -0700)
committerNoah Misch <noah@leadboat.com>
Tue, 24 Sep 2024 22:25:22 +0000 (15:25 -0700)
commitacc63ef4fbe686b0a21000d391d42bbf6b8296eb
tree822a8977966342274636b612dae114b9c86064e1
parentf663f4daf075b75268579c9a19d79de81b18c67b
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.aa.nmisch@google.com
src/backend/storage/lmgr/lock.c