Re: Exit walsender before confirming remote flush in logical replication

From: Andrey Silitskiy <a(dot)silitskiy(at)postgrespro(dot)ru>
To: Alexander Korotkov <aekorotkov(at)gmail(dot)com>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: Greg Sabino Mullane <htamfids(at)gmail(dot)com>, Japin Li <japinli(at)hotmail(dot)com>, Ronan Dunklau <ronan(at)dunklau(dot)fr>, Vitaly Davydov <v(dot)davydov(at)postgrespro(dot)ru>, "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>, "Takamichi Osumi (Fujitsu)" <osumi(dot)takamichi(at)fujitsu(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, "sawada(dot)mshk(at)gmail(dot)com" <sawada(dot)mshk(at)gmail(dot)com>, "michael(at)paquier(dot)xyz" <michael(at)paquier(dot)xyz>, "peter(dot)eisentraut(at)enterprisedb(dot)com" <peter(dot)eisentraut(at)enterprisedb(dot)com>, "dilipbalaut(at)gmail(dot)com" <dilipbalaut(at)gmail(dot)com>, "andres(at)anarazel(dot)de" <andres(at)anarazel(dot)de>, "amit(dot)kapila16(at)gmail(dot)com" <amit(dot)kapila16(at)gmail(dot)com>, Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>, Peter Smith <smithpb2250(at)gmail(dot)com>
Subject: Re: Exit walsender before confirming remote flush in logical replication
Date: 2026-03-30 17:31:04
Message-ID: 8a250eda-77c2-4872-b675-35513b74b8af@postgrespro.ru
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mar 30, 2026 Andrey Silitskiy
<a(dot)silitskiy(at)postgrespro(dot)ru>wrote:
> It is worth noting that in this configuration, the second walsender may
> terminate due to inactive slot before the wal_sender_shutdown_timeout
> terminates the process, ...

Updated. In this configuration, in some situations walsender processes
may already have been terminated by the time of fast shutdown.
And in this case, the fast shutdown will be successful, but it will not
be the reason for walsender termination and the logs will be different.
Decided to leave the new shutdown test case, but not check the logs in it.

Attachment Content-Type Size
v7-0001-Introduce-a-new-wal_sender_shutdown_timeout-GUC.patch text/x-patch 23.9 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Jackson 2026-03-30 17:32:20 Re: Add ldapservice connection parameter
Previous Message Andres Freund 2026-03-30 17:28:41 Re: EXPLAIN: showing ReadStream / prefetch stats