Re: Set fallback_application_name for a walreceiver to cluster_name

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Set fallback_application_name for a walreceiver to cluster_name
Дата
Msg-id 71d3a417-5607-8036-1970-8c56d61ac339@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: Set fallback_application_name for a walreceiver to cluster_name  (Euler Taveira <euler@timbira.com.br>)
Список pgsql-hackers
On 2019-02-21 01:36, Euler Taveira wrote:
>> By default, the fallback_application_name for a physical walreceiver is
>> "walreceiver".  This means that multiple standbys cannot be
>> distinguished easily on a primary, for example in pg_stat_activity or
>> synchronous_standby_names.
>>
> Although standby identification could be made by client_addr in
> pg_stat_activity, it could be useful in multiple clusters in the same
> host. Since it is a fallback application name, it can be overridden by
> an application_name in primary_conninfo parameter.

Yeah, plus that doesn't help with synchronous_standby_names.

>> I propose, if cluster_name is set, use that for
>> fallback_application_name in the walreceiver.  (If it's not set, it
>> remains "walreceiver".)  If someone set cluster_name to identify their
>> instance, we might as well use that by default to identify the node
>> remotely as well.  It's still possible to specify another
>> application_name in primary_conninfo explicitly.
>>
> I tested it and both patches work as described. Passes all tests. Doc
> describes the proposed feature. Doc builds without errors.

Committed, thanks!

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Pluggable Storage - Andres's take
Следующее
От: Masahiko Sawada
Дата:
Сообщение: Re: New vacuum option to do only freezing