From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use an LWLock instead of a spinlock in waitlsn.c
Date: Sat, 06 Apr 2024 21:50:10 +0000
Message-ID: <E1rtDvN-000rUK-I9@gemulon.postgresql.org> (raw)
Use an LWLock instead of a spinlock in waitlsn.c
This should prevent busy-waiting when number of waiting processes is high.
Discussion: https://postgr.es/m/202404030658.hhj3vfxeyhft%40alvherre.pgsql
Author: Alvaro Herrera
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/25f42429e2ff2acca35c9154fc2e36b75c79227a
Modified Files
--------------
src/backend/commands/waitlsn.c | 15 +++++++--------
src/backend/utils/activity/wait_event_names.txt | 1 +
src/include/commands/waitlsn.h | 5 +----
src/include/storage/lwlocklist.h | 1 +
4 files changed, 10 insertions(+), 12 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: akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Use an LWLock instead of a spinlock in waitlsn.c
In-Reply-To: <E1rtDvN-000rUK-I9@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