Re: Allow specifying a dbname in pg_basebackup connection string

Поиск
Список
Период
Сортировка
Искать
От
Thom Brown
Тема
Re: Allow specifying a dbname in pg_basebackup connection string
Дата
Msg-id
CAA-aLv6QHjBPZtGjy2mpP=1r4+vW=buigGUpU-cVqTLU=ARVNg@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Allow specifying a dbname in pg_basebackup connection string Jelte Fennema <postgres@jeltef.nl>
Re: Allow specifying a dbname in pg_basebackup connection string Thom Brown <thom@linux.com>
Re: Allow specifying a dbname in pg_basebackup connection string "Euler Taveira" <euler@eulerto.com>
Re: Allow specifying a dbname in pg_basebackup connection string Jelte Fennema <postgres@jeltef.nl>
Re: Allow specifying a dbname in pg_basebackup connection string Thom Brown <thom@linux.com>
Re: Allow specifying a dbname in pg_basebackup connection string Jelte Fennema <postgres@jeltef.nl>
Re: Allow specifying a dbname in pg_basebackup connection string Tristen Raab <tristen.raab@highgo.ca>
Re: Allow specifying a dbname in pg_basebackup connection string Jelte Fennema <me@jeltef.nl>
Re: Allow specifying a dbname in pg_basebackup connection string Jim Jones <jim.jones@uni-muenster.de>
Re: Allow specifying a dbname in pg_basebackup connection string Jelte Fennema <me@jeltef.nl>
Re: Allow specifying a dbname in pg_basebackup connection string Jim Jones <jim.jones@uni-muenster.de>
Re: Allow specifying a dbname in pg_basebackup connection string Jelte Fennema <me@jeltef.nl>
Re: Allow specifying a dbname in pg_basebackup connection string Daniel Gustafsson <daniel@yesql.se>
Re: Allow specifying a dbname in pg_basebackup connection string Daniel Gustafsson <daniel@yesql.se>
Re: Allow specifying a dbname in pg_basebackup connection string Tom Lane <tgl@sss.pgh.pa.us>
Re: Allow specifying a dbname in pg_basebackup connection string Daniel Gustafsson <daniel@yesql.se>
Re: Allow specifying a dbname in pg_basebackup connection string Tom Lane <tgl@sss.pgh.pa.us>
Re: Allow specifying a dbname in pg_basebackup connection string Jelte Fennema-Nio <me@jeltef.nl>
Re: Allow specifying a dbname in pg_basebackup connection string Tom Lane <tgl@sss.pgh.pa.us>
Re: Allow specifying a dbname in pg_basebackup connection string Jelte Fennema-Nio <me@jeltef.nl>
On Mon, 3 Jul 2023 at 13:23, Jelte Fennema  wrote:
>
> Normally it doesn't really matter which dbname is used in the connection
> string that pg_basebackup and other physical replication CLI tools use.
> The reason being, that physical replication does not work at the
> database level, but instead at the server level. So you will always get
> the data for all databases.
>
> However, when there's a proxy, such as PgBouncer, in between the client
> and the server, then it might very well matter. Because this proxy might
> want to route the connection to a different server depending on the
> dbname parameter in the startup packet.
>
> This patch changes the creation of the connection string key value
> pairs, so that the following command will actually include
> dbname=postgres in the startup packet to the server:
>
> pg_basebackup --dbname 'dbname=postgres port=6432' -D dump

I guess my immediate question is, should backups be taken through
PgBouncer?  It seems beyond PgBouncer's remit.

Thom


В списке pgsql-hackers по дате отправления
От: Thom Brown
Дата:
Сообщение: Re: Disabling Heap-Only Tuples
От: Amit Kapila
Дата:
FAQ