From 4ecdd4110d5cbaf107c0c85d16df78dffe0a9574 Mon Sep 17 00:00:00 2001 From: Masahiko Sawada Date: Wed, 12 Mar 2025 16:56:04 -0700 Subject: 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 Reviewed-by: Peter Smith Discussion: https://postgr.es/m/CAD21AoAkW=Ht0k9dVoBTCcqLiiZ2MXhVr+d=j2T_EZMerGrLWQ@mail.gmail.com --- doc/src/sgml/ref/pg_rewind.sgml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/pg_rewind.sgml b/doc/src/sgml/ref/pg_rewind.sgml index dc039d87566..5485033ed8c 100644 --- a/doc/src/sgml/ref/pg_rewind.sgml +++ b/doc/src/sgml/ref/pg_rewind.sgml @@ -186,8 +186,10 @@ PostgreSQL documentation Create standby.signal and append connection settings to postgresql.auto.conf in the output - directory. --source-server is mandatory with - this option. + directory. The dbname will be recorded only if the dbname was + specified explicitly in the connection string or + environment variable. --source-server is + mandatory with this option. -- cgit v1.2.3