Re: pg_rewind with --write-recovery-conf option doesn't write dbname to primary_conninfo value.

From: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
To: "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_rewind with --write-recovery-conf option doesn't write dbname to primary_conninfo value.
Date: 2025-03-11 23:26:15
Message-ID: CAD21AoCF8UbDw7e+8GhARpOa937tkNRurveRYA53pNYdNL5jGg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Feb 11, 2025 at 9:36 PM Hayato Kuroda (Fujitsu)
<kuroda(dot)hayato(at)fujitsu(dot)com> wrote:
>
> Dear Sawada-san,
>
> Thanks for updating the patch!
>
> > I've attached the updated patch. I address all comments I got so far
> > and added a small regression test.
> >
> > It makes sense to me that we move GetDbnameFromConnectionOptions() to
> > recovery_gen.c since this function is currently used only with
> > GenerateRecoveryConfig() which is defined in the same file. If we find
> > a more appropriate place, we can move it later. Feedback is very
> > welcome.
>
> I considered your idea that adding new API, but it seemed for me to have less
> benefit. Also, I do not know better place for the declaration now. Overall, the
> patch looks good to me.
>

I'm going to push the v2 patch, barring any objections and further comments.

Regards,

--
Masahiko Sawada
Amazon Web Services: https://aws.amazon.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Noah Misch 2025-03-11 23:48:39 Re: dblink query interruptibility
Previous Message Isaac Morland 2025-03-11 23:14:30 Re: Non-text mode for pg_dumpall