Re: Application name for pg_basebackup and friends

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Application name for pg_basebackup and friends
Дата
Msg-id 49f629b0-9862-1d70-f38f-2ee2c1da38c8@iki.fi
обсуждение исходный текст
Ответ на Application name for pg_basebackup and friends  (Jesper Pedersen <jesper.pedersen@redhat.com>)
Ответы Re: Application name for pg_basebackup and friends  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On 31/10/2019 14:52, Jesper Pedersen wrote:
> Hi,
> 
> The attached patch adds an -a / --appname command line switch to
> pg_basebackup, pg_receivewal and pg_recvlogical.
> 
> This is useful when f.ex. pg_receivewal needs to connect as a
> synchronous client (synchronous_standby_names),
> 
>    pg_receivewal -h myhost -p 5432 -S replica1 -a replica1 --synchronous
> -D /wal
> 
> I'll add the patch to the CommitFest for discussion, as there is overlap
> with the -d switch.

You can already set application name with the environment variable or on 
the database connections string:

pg_receivewal -D /wal -d "host=myhost application_name=myreceiver"

I don't think we need a new comand line switch for it.

- Heikki



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jesper Pedersen
Дата:
Сообщение: Application name for pg_basebackup and friends
Следующее
От: Julien Rouhaud
Дата:
Сообщение: Re: Collation versioning