Re: Exit walsender before confirming remote flush in logical replication
Andrey Silitskiy <a.silitskiy@postgrespro.ru>
From: Andrey Silitskiy <a.silitskiy@postgrespro.ru>
To: Ronan Dunklau <ronan@dunklau.fr>
Cc: Vitaly Davydov <v.davydov@postgrespro.ru>,
"Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>,
"Takamichi Osumi (Fujitsu)" <osumi.takamichi@fujitsu.com>,
"pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>,
"sawada.mshk@gmail.com" <sawada.mshk@gmail.com>,
"michael@paquier.xyz" <michael@paquier.xyz>,
"peter.eisentraut@enterprisedb.com" <peter.eisentraut@enterprisedb.com>,
"dilipbalaut@gmail.com" <dilipbalaut@gmail.com>,
"andres@anarazel.de" <andres@anarazel.de>,
"amit.kapila16@gmail.com" <amit.kapila16@gmail.com>,
Kyotaro Horiguchi <horikyota.ntt@gmail.com>,
Peter Smith <smithpb2250@gmail.com>, Greg Sabino Mullane
<htamfids@gmail.com>, Alexander Korotkov <aekorotkov@gmail.com>,
Fujii Masao <masao.fujii@gmail.com>
Date: 2026-01-28T11:33:31Z
Lists: pgsql-hackers
Dear Ronan, Thanks for participating in the discussion. On Jan 28, 2026 Ronan Dunklau <ronan(at)dunklau(dot)fr> wrote: > ... a timeout for the wait (maybe named wal_sender_stop_timeout ?) would > allow for the same usage ... Sounds like an option. This is also possible in the current implementation, but your option offers a simpler interface if we do not plan to add new wallsender completion modes. The naming of the parameter is also a question, because wal_sender_timeout already exists (which also fits the name wal_sender_stop_timeout quite well). The difference between these parameters may not be obvious to users. Thoughts? Regards, Andrey Silitskiy
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Avoid blocking indefinitely while finishing walsender shutdown
- c0b24b32b0d3 19 (unreleased) landed
-
Add wal_sender_shutdown_timeout GUC to limit shutdown wait for replication
- a8f45dee9176 19 (unreleased) landed
-
pg_upgrade: Add --copy option
- 746915c68669 16.0 cited
-
Prevent possibility of panics during shutdown checkpoint.
- c6c333436491 10.0 cited
-
Support clean switchover.
- 985bd7d49726 9.4.0 cited