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 LSN waiter cleanup after wakeup
Date: Tue, 18 Aug 2026 12:02:13 +0000
Message-ID: <E1wwIWC-000000013YR-2FX6@gemulon.postgresql.org> (raw)

Clarify LSN waiter cleanup after wakeup

WaitLSNWakeup() can be called by several processes, not only the startup
process.  Update the cleanup comment to explain that another process may
remove the waiter before waking it and that inHeap prevents double
deletion.

Author: Xuneng Zhou <xunengzhou@gmail.com>
Reviewed-by: Alexander Korotkov <aekorotkov@gmail.com>
Discussion: https://postgr.es/m/CABPTF7UtW_cAa%3DQh4RDfKiUqu3pJJE22ai9tbWJVERbeRyssLw%40mail.gmail.com
Backpatch-through: 19

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/774dc1e9ddf2ffd0b6b66f3ed9d041fe25cae36a

Modified Files
--------------
src/backend/access/transam/xlogwait.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1wwIWC-000000013YR-2FX6@gemulon.postgresql.org>
Permalink:  ../E1wwIWC-000000013YR-2FX6@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wwIWC-000000013YR-2FX6@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: akorotkov@postgresql.org
  Subject: Re: pgsql: Clarify LSN waiter cleanup after wakeup
  In-Reply-To: <E1wwIWC-000000013YR-2FX6@gemulon.postgresql.org>
  References: <E1wwIWC-000000013YR-2FX6@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