Re: Resetting recovery target parameters in pg_createsubscriber
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Alena Vinter <dlaaren8@gmail.com>
Cc: Alexander Korotkov <aekorotkov@gmail.com>,
Michael Paquier <michael@paquier.xyz>, Ilyasov Ian <ianilyasov@outlook.com>, "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2025-11-19T19:49:29Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
pg_createsubscriber: Improve handling of automated recovery configuration
- 639352d904c8 19 (unreleased) landed
On Thu, Nov 13, 2025 at 7:46 AM Alena Vinter <dlaaren8@gmail.com> wrote: > Robert, here's a realistic scenario where the issue occurs: > 1. Start with a primary and physical standby > 2. Convert the standby to a logical replica using `pg_createsubscriber` > 3. Later, create a new physical standby from a backup of this logical replica > 4. The new standby fails to start because it cannot reach consistency point > > The root cause is that `pg_createsubscriber` leaves behind recovery parameters that interfere with the new standby's startup process, causing recovery to stop before reaching a consistency point. Yes, I agree this is a much better scenario to test. Thanks. -- Robert Haas EDB: http://www.enterprisedb.com