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:15 +0000
Message-ID: <E1wwIWE-000000013ZO-0XSl@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
------
REL_19_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/f2d6392e199256dd4a37bebbc92a2d28fac45b5f
Modified Files
--------------
src/backend/access/transam/xlogwait.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
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: <E1wwIWE-000000013ZO-0XSl@gemulon.postgresql.org>
References: <E1wwIWE-000000013ZO-0XSl@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