pgsql: Remove WaitEventCustomCounterData.

From: Nathan Bossart <nathan(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove WaitEventCustomCounterData.
Date: 2026-07-09 16:10:17
Message-ID: E1whrKL-000JjC-00@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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 <michael(at)paquier(dot)xyz>
Reviewed-by: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2026-07-09 19:25:31 pgsql: Bump catversion for JSON_TABLE PLAN clause
Previous Message Heikki Linnakangas 2026-07-09 15:51:22 pgsql: ssl: Include limits.h to get INT_MAX when using LibreSSL