pgsql: Remove WaitEventCustomCounterData. - Mailing list pgsql-committers

From Nathan Bossart
Subject pgsql: Remove WaitEventCustomCounterData.
Date
Msg-id E1whrKL-000JjC-00@gemulon.postgresql.org
Whole thread
List 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@paquier.xyz>
Reviewed-by: Fujii Masao <masao.fujii@gmail.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(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: libpq: Make error checks in the new buffer draining code more ro
Next
From: Alexander Korotkov
Date:
Subject: pgsql: Bump catversion for JSON_TABLE PLAN clause