Re: 9.5 new setting "cluster name" and logging

Поиск
Список
Период
Сортировка
От Evan Rempel
Тема Re: 9.5 new setting "cluster name" and logging
Дата
Msg-id 56C63CD2.9090405@uvic.ca
обсуждение исходный текст
Ответ на Re: 9.5 new setting "cluster name" and logging  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-admin
On 02/18/2016 01:42 PM, Bruce Momjian wrote:
> On Fri, Jan 29, 2016 at 10:19:45PM -0800, Evan Rempel wrote:
>> Now that there is a setting to give a cluster a "name", it would be
>> nice to have an escape sequence in the log_line_prefix setting that
>> could reference the cluster_name.
>>
>> Comments?
>>
>> Can we get this on the "to do list"?
> Uh, wouldn't the cluster name be the same on every line?  Is that
> useful?
>
That is correct. It does not make sense when looking into local log files, but you would not use the log prefix in that
environment.

When this feature would be useful is when you are sending the logs to syslog from many postgresql clusters, and on a
centralserver, You want to collect logs together that use the same cluster name. It just provides more flexibility to
addcontextual information to the log lines. 


--
Evan Rempel


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: 9.5 new setting "cluster name" and logging
Следующее
От: Tom Lane
Дата:
Сообщение: Re: 9.5 new setting "cluster name" and logging