pgsql: Clarify what is protected by WaitLSNLock - Mailing list pgsql-committers

From Alexander Korotkov
Subject pgsql: Clarify what is protected by WaitLSNLock
Date
Msg-id E1rtDvN-000rUL-Ig@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Tomas Vondra
Date:
Subject: pgsql: BitmapHeapScan: begin scan after bitmap creation
Next
From: Tomas Vondra
Date:
Subject: pgsql: BitmapHeapScan: postpone setting can_skip_fetch