From: | Alexander Korotkov <akorotkov(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Use an LWLock instead of a spinlock in waitlsn.c |
Date: | 2024-04-06 21:50:10 |
Message-ID: | [email protected] |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tomas Vondra | 2024-04-06 21:57:14 | pgsql: BitmapHeapScan: postpone setting can_skip_fetch |
Previous Message | Tomas Vondra | 2024-04-06 20:58:32 | pgsql: BitmapHeapScan: begin scan after bitmap creation |