diff options
author | Amit Kapila <akapila@postgresql.org> | 2024-03-21 10:48:59 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2024-03-21 10:50:33 +0530 |
commit | a145f424d5248a09d766e8cb503b999290cb3b31 (patch) | |
tree | c78c1df755ced2b228c5d1c4a4b18fa67ba16c95 /doc/src | |
parent | 30e144287a72529c9cd9fd6b07fe96eb8a1e270e (diff) | |
download | postgresql-a145f424d5248a09d766e8cb503b999290cb3b31.tar.gz postgresql-a145f424d5248a09d766e8cb503b999290cb3b31.zip |
Allow dbname to be written as part of connstring via pg_basebackup's -R option.
Commit cca97ce6a665 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
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/pg_basebackup.sgml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/src/sgml/ref/pg_basebackup.sgml b/doc/src/sgml/ref/pg_basebackup.sgml index 88c689e7259..208530f393a 100644 --- a/doc/src/sgml/ref/pg_basebackup.sgml +++ b/doc/src/sgml/ref/pg_basebackup.sgml @@ -243,7 +243,11 @@ PostgreSQL documentation The <filename>postgresql.auto.conf</filename> file will record the connection settings and, if specified, the replication slot that <application>pg_basebackup</application> is using, so that - streaming replication will use the same settings later on. + streaming replication and <link linkend="logicaldecoding-replication-slots-synchronization"> + logical replication slot synchronization</link> will use the same + settings later on. The dbname will be recorded only if the dbname was + specified explicitly in the connection string or <link linkend="libpq-envars"> + environment variable</link>. </para> </listitem> @@ -809,7 +813,9 @@ PostgreSQL documentation name in the connection string will be ignored by <productname>PostgreSQL</productname>. Middleware, or proxies, used in connecting to <productname>PostgreSQL</productname> might however - utilize the value. + utilize the value. The database name specified in connection string can + also be used by <link linkend="logicaldecoding-replication-slots-synchronization"> + logical replication slot synchronization</link>. </para> </listitem> </varlistentry> |