Use an LWLock instead of a spinlock in waitlsn.c
Alexander Korotkov <akorotkov@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/waitlsn.c | modified | +7 −8 |
| src/backend/utils/activity/wait_event_names.txt | modified | +1 −0 |
| src/include/commands/waitlsn.h | modified | +1 −4 |
| src/include/storage/lwlocklist.h | modified | +1 −0 |
Discussion
- Re: [HACKERS] make async slave to wait for lsn to be replayed 113 messages · 2023-02-28 → 2024-09-17