mirror of
https://github.com/postgres/postgres.git
synced 2026-01-27 21:43:08 +03:00
Allow dbname to be written as part of connstring via pg_basebackup's -R option.
Commit cca97ce6a6 allowed dbname in pg_basebackup connstring and in this
commit we allow it to be written in postgresql.auto.conf when -R option is
used. The database name in the connection string will be used by the
logical replication slot synchronization on standby.
The dbname will be recorded only if specified explicitly in the connection
string or environment variable.
Masahiko Sawada hasn't reviewed the code in detail but endorsed the idea.
Author: Vignesh C, Kuroda Hayato
Reviewed-by: Amit Kapila
Discussion: https://postgr.es/m/CAB8KJ=hdKdg+UeXhReeHpHA6N6v3e0qFF+ZsPFHk9_ThWKf=2A@mail.gmail.com
This commit is contained in:
@@ -21,7 +21,8 @@
|
||||
#define MINIMUM_VERSION_FOR_RECOVERY_GUC 120000
|
||||
|
||||
extern PQExpBuffer GenerateRecoveryConfig(PGconn *pgconn,
|
||||
const char *replication_slot);
|
||||
const char *replication_slot,
|
||||
char *dbname);
|
||||
extern void WriteRecoveryConfig(PGconn *pgconn, const char *target_dir,
|
||||
PQExpBuffer contents);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user