agora inbox for pgsql-committers@postgresql.org
help / color / mirror / Atom feedFrom: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Minimal fix for WAIT FOR ... MODE 'standby_flush'
Date: Tue, 07 Apr 2026 13:52:02 +0000
Message-ID: <E1wA6qX-003P9t-1w@gemulon.postgresql.org> (raw)
Minimal fix for WAIT FOR ... MODE 'standby_flush'
The investigation into the negative test performance impact of 7e8aeb9e483
lead to discovering that there are a few issues with WAIT FOR.
This commit is just a minimal fix to prevent hangs in standby_flush mode, due
to WAIT FOR ... 'standby_flush' seeing a 0 LSN if a newly started walreceiver
does not receive any writes, because the stanby is already caught up.
There are several other issues and this is isn't necessarily the best fix. But
this way we get the hangs out of the way.
Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/zqbppucpmkeqecfy4s5kscnru4tbk6khp3ozqz6ad2zijz354k@w4bdf4z3wqoz
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/29e7dbf5e4daa8fafc2b18a1551e7b31c8847340
Modified Files
--------------
src/backend/replication/walreceiver.c | 2 --
src/backend/replication/walreceiverfuncs.c | 1 +
2 files changed, 1 insertion(+), 2 deletions(-)
Message-ID: <E1wA6qX-003P9t-1w@gemulon.postgresql.org>
Permalink: ../E1wA6qX-003P9t-1w@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1wA6qX-003P9t-1w@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: andres@anarazel.de, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Minimal fix for WAIT FOR ... MODE 'standby_flush'
In-Reply-To: <E1wA6qX-003P9t-1w@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox