pgsql: Use an LWLock instead of a spinlock in waitlsn.c

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема pgsql: Use an LWLock instead of a spinlock in waitlsn.c
Дата
Msg-id E1rtDvN-000rUK-I9@gemulon.postgresql.org
обсуждение исходный текст
Список 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

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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: pgsql: BitmapHeapScan: begin scan after bitmap creation
Следующее
От: Tomas Vondra
Дата:
Сообщение: pgsql: BitmapHeapScan: postpone setting can_skip_fetch