From: | Masahiko Sawada <msawada(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: pg_rewind: Add dbname to primary_conninfo when using --write-rec |
Date: | 2025-03-12 23:56:22 |
Message-ID: | E1tsVvy-002As4-2X@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
pg_rewind: Add dbname to primary_conninfo when using --write-recovery-conf.
This commit enhances pg_rewind's --write-recovery-conf option to
include the dbname in the generated primary_conninfo value when
specified in the --source-server option. With this modification, the
rewound server can connect to the primary server without manual
configuration file modifications when sync_replication_slots is
enabled.
Reviewed-by: Hayato Kuroda <kuroda(dot)hayato(at)fujitsu(dot)com>
Reviewed-by: Peter Smith <smithpb2250(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAD21AoAkW=Ht0k9dVoBTCcqLiiZ2MXhVr+d=j2T_EZMerGrLWQ@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/4ecdd4110d5cbaf107c0c85d16df78dffe0a9574
Modified Files
--------------
doc/src/sgml/ref/pg_rewind.sgml | 6 ++-
src/bin/pg_basebackup/pg_basebackup.c | 2 +-
src/bin/pg_basebackup/streamutil.c | 69 -----------------------------------
src/bin/pg_basebackup/streamutil.h | 2 -
src/bin/pg_rewind/pg_rewind.c | 6 ++-
src/bin/pg_rewind/t/RewindTest.pm | 5 +++
src/fe_utils/recovery_gen.c | 66 +++++++++++++++++++++++++++++++++
src/include/fe_utils/recovery_gen.h | 1 +
8 files changed, 81 insertions(+), 76 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Langote | 2025-03-13 00:58:54 | pgsql: Fix copy-paste error in datum_to_jsonb_internal() |
Previous Message | David Rowley | 2025-03-12 23:50:17 | pgsql: Fix indentation issue |