public inbox for [email protected]
help / color / mirror / Atom feedFrom: Nathan Bossart <[email protected]>
To: [email protected]
Subject: pgsql: Remove WaitEventCustomCounterData.
Date: Thu, 09 Jul 2026 16:10:17 +0000
Message-ID: <[email protected]> (raw)
Remove WaitEventCustomCounterData.
The spinlock is unnecessary because the counter is only ever
accessed with WaitEventCustomLock held exclusively. This commit
removes the struct definition and converts WaitEventCustomCounter
to a pointer to an integer in shared memory.
Reviewed-by: Michael Paquier <[email protected]>
Reviewed-by: Fujii Masao <[email protected]>
Discussion: https://postgr.es/m/ak8MeTS9QBmz6DKt%40nathan
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/8f7af125e03739b66998a75840dedd943ec3624e
Modified Files
--------------
src/backend/utils/activity/wait_event.c | 30 +++++++-----------------------
src/tools/pgindent/typedefs.list | 1 -
2 files changed, 7 insertions(+), 24 deletions(-)
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: [email protected]
Cc: [email protected], [email protected]
Subject: Re: pgsql: Remove WaitEventCustomCounterData.
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox