pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Clarify what is protected by WaitLSNLock
Date: Sat, 06 Apr 2024 21:50:10 +0000
Message-ID: <E1rtDvN-000rUL-Ig@gemulon.postgresql.org> (raw)

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



Message-ID: <E1rtDvN-000rUL-Ig@gemulon.postgresql.org>
Permalink:  ../E1rtDvN-000rUL-Ig@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rtDvN-000rUL-Ig@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Clarify what is protected by WaitLSNLock
  In-Reply-To: <E1rtDvN-000rUL-Ig@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox