From: | Alexander Korotkov <akorotkov(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Clarify what is protected by WaitLSNLock |
Date: | 2024-04-06 21:50:10 |
Message-ID: | E1rtDvN-000rUL-Ig@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Clarify what is protected by WaitLSNLock
Not just WaitLSNState.waitersHeap, but also WaitLSNState.procInfos and
updating of WaitLSNState.minWaitedLSN is protected by WaitLSNLock. There
is one now documented exclusion on fast-path checking of
WaitLSNProcInfo.inHeap flag.
Discussion: https://postgr.es/m/202404030658.hhj3vfxeyhft%40alvherre.pgsql
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/ee79928441e7e291532b833455ebfee27d7cab5c
Modified Files
--------------
src/backend/commands/waitlsn.c | 10 ++++++++--
src/include/commands/waitlsn.h | 7 +++++--
2 files changed, 13 insertions(+), 4 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 |