pgsql: Allow dbname to be written as part of connstring via pg_baseback

From: Amit Kapila <akapila(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Allow dbname to be written as part of connstring via pg_baseback
Date: 2024-03-21 05:31:55
Message-ID: E1rnB1v-004szL-22@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a145f424d5248a09d766e8cb503b999290cb3b31

Modified Files
--------------
doc/src/sgml/ref/pg_basebackup.sgml | 10 +++-
src/bin/pg_basebackup/pg_basebackup.c | 12 ++++-
src/bin/pg_basebackup/streamutil.c | 70 ++++++++++++++++++++++++++++
src/bin/pg_basebackup/streamutil.h | 2 +
src/bin/pg_basebackup/t/010_pg_basebackup.pl | 13 ++++++
src/bin/pg_rewind/pg_rewind.c | 4 +-
src/fe_utils/recovery_gen.c | 21 ++++++++-
src/include/fe_utils/recovery_gen.h | 3 +-
8 files changed, 127 insertions(+), 8 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Langote 2024-03-21 08:07:37 pgsql: Add SQL/JSON query functions
Previous Message Masahiko Sawada 2024-03-21 01:10:29 pgsql: Add TIDStore, to store sets of TIDs (ItemPointerData) efficientl