pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Gustafsson <dgustafsson@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow dbname in pg_basebackup/pg_receivewal connstring
Date: Thu, 21 Sep 2023 12:38:12 +0000
Message-ID: <E1qjIwe-0057lS-HK@gemulon.postgresql.org> (raw)

Allow dbname in pg_basebackup/pg_receivewal connstring

As physical replication work at the cluster level and not database
level, any dbname in the connection string is ignored. Proxies and
middleware used in connecting to the cluster might however need to
know the dbname in order to make the correct routing decision for
the connection.

With this the startup packet will include the dbname parameter.

Author: Jelte Fennema-Nio <me@jeltef.nl>
Reviewed-by: Tristen Raab <tristen.raab@highgo.ca>
Reviewed-by: Jim Jones <jim.jones@uni-muenster.de>
Discussion: https://postgr.es/m/CAGECzQTw-dZkVT_RELRzfWRzY714-VaTjoBATYfZq93R8C-auA@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/ref/pg_basebackup.sgml |  5 ++++-
doc/src/sgml/ref/pg_receivewal.sgml |  7 +++++--
src/bin/pg_basebackup/streamutil.c  | 29 ++++++++++++++++++-----------
3 files changed, 27 insertions(+), 14 deletions(-)



Message-ID: <E1qjIwe-0057lS-HK@gemulon.postgresql.org>
Permalink:  ../E1qjIwe-0057lS-HK@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1qjIwe-0057lS-HK@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: dgustafsson@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Allow dbname in pg_basebackup/pg_receivewal connstring
  In-Reply-To: <E1qjIwe-0057lS-HK@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox