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: Wake LSN waiters before recovery target stop
Date: Thu, 29 Jan 2026 07:47:16 +0000
Message-ID: <E1vlMkF-003LIC-1D@gemulon.postgresql.org> (raw)

Wake LSN waiters before recovery target stop

Move WaitLSNWakeup() immediately after ApplyWalRecord() so waiters are
signaled even when recoveryStopsAfter() breaks out for pause/promotion
targets.

Discussion: https://postgr.es/m/9533608f-f289-44bd-b881-9e5a73203c5b%40iki.fi
Discussion: https://postgr.es/m/CABPTF7Wdq6KbvC3EhLX3Pz%3DODCCPEX7qVQ%2BE%3DcokkB91an2E-A%40mail.gmail.com
Reported-by: Heikki Linnakangas <hlinnaka@iki.fi>
Author: Xuneng Zhou <xunengzhou@gmail.com>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/20a8f783e15c503125c2ed0ae890510879f62801

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



Message-ID: <E1vlMkF-003LIC-1D@gemulon.postgresql.org>
Permalink:  ../E1vlMkF-003LIC-1D@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vlMkF-003LIC-1D@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: Wake LSN waiters before recovery target stop
  In-Reply-To: <E1vlMkF-003LIC-1D@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