Allow dbname in pg_basebackup/pg_receivewal connstring
authorDaniel Gustafsson <[email protected]>
Thu, 21 Sep 2023 11:53:07 +0000 (13:53 +0200)
committerDaniel Gustafsson <[email protected]>
Thu, 21 Sep 2023 11:53:07 +0000 (13:53 +0200)
commitcca97ce6a6653df7f4ec71ecd54944cc9a6c4c16
tree319b047b066b90da93e6db12deadc3cf1ae28d7d
parentc621467d2bc6435d07db4471998ca9c9f0c57777
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 <[email protected]>
Reviewed-by: Tristen Raab <[email protected]>
Reviewed-by: Jim Jones <[email protected]>
Discussion: https://postgr.es/m/CAGECzQTw-dZkVT_RELRzfWRzY714-VaTjoBATYfZq93R8C-auA@mail.gmail.com
doc/src/sgml/ref/pg_basebackup.sgml
doc/src/sgml/ref/pg_receivewal.sgml
src/bin/pg_basebackup/streamutil.c