From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: lwlock: Remove ForEachLWLockHeldByMe
Date: Thu, 15 Jan 2026 19:59:29 +0000
Message-ID: <E1vgTVA-000fhV-35@gemulon.postgresql.org> (raw)
lwlock: Remove ForEachLWLockHeldByMe
As of commit fcb9c977aa5, ForEachLWLockHeldByMe(), introduced in f4ece891fc2f,
is not used anymore, as content locks are now implemented in bufmgr.c. It
doesn't seem that likely that a new user of the functionality will appear all
that soon, making removal of the function seem like the most sensible path. It
can easily be added back if necessary.
Discussion: https://postgr.es/m/lneuyxqxamqoayd2ntau3lqjblzdckw6tjgeu4574ezwh4tzlg%40noioxkquezdw
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/55fbfb738b00be8779949595065cb85aa471ea80
Modified Files
--------------
src/backend/storage/lmgr/lwlock.c | 15 ---------------
src/include/storage/lwlock.h | 2 --
2 files changed, 17 deletions(-)
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: andres@anarazel.de, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: lwlock: Remove ForEachLWLockHeldByMe
In-Reply-To: <E1vgTVA-000fhV-35@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