Re: Resetting recovery target parameters in pg_createsubscriber
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Alena Vinter <dlaaren8@gmail.com>
Cc: Alexander Korotkov <aekorotkov@gmail.com>, "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>, "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>
Date: 2025-10-01T04:02:25Z
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 Tue, Sep 30, 2025 at 12:22:08PM +0700, Alena Vinter wrote: > This relates to the point I mentioned earlier about being unsure whether we > should preserve `primary_conninfo`: > > I kept primary_conninfo as-is for now since I'm not totally sure if we > need to touch it > > The reason I called `GenerateRecoveryConfig()` was to regenerate the > `primary_conninfo` string in the recovery configuration file. If we should > remove it, then the reset function can be much simpler. Could you please > help me to clarify should we regenerate `primary_conninfo` or we can safely > purge it? Based on the contents of the latest patch, we reset the parameters after promoting the node, and primary_conninfo only matters while we are in recovery, for a standby recovery WAL using the streaming replication protocol. -- Michael