pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Clarify LSN waiter cleanup after wakeup
2+ messages / 1 participants
[nested] [flat]

* pgsql: Clarify LSN waiter cleanup after wakeup
@ 2026-08-18 12:02  Alexander Korotkov <akorotkov@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Alexander Korotkov @ 2026-08-18 12:02 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Clarify LSN waiter cleanup after wakeup
@ 2026-08-18 12:02  Alexander Korotkov <akorotkov@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Alexander Korotkov @ 2026-08-18 12:02 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2026-08-18 12:02 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-08-18 12:02 pgsql: Clarify LSN waiter cleanup after wakeup Alexander Korotkov <akorotkov@postgresql.org>
2026-08-18 12:02 pgsql: Clarify LSN waiter cleanup after wakeup Alexander Korotkov <akorotkov@postgresql.org>

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