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