Re: 9.5 new setting "cluster name" and logging

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Evan Rempel <erempel(at)uvic(dot)ca>, pgsql-admin(at)postgresql(dot)org
Subject: Re: 9.5 new setting "cluster name" and logging
Date: 2016-02-18 21:53:01
Message-ID: 27145.1455832381@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers

Bruce Momjian <bruce(at)momjian(dot)us> writes:
> 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.

> Uh, wouldn't the cluster name be the same on every line? Is that
> useful?

I guess if you were running multiple clusters and having them all log
to the same syslog daemon, there might be multiple clusters' output
in the same log ... but we already have ways to disambiguate that case,
ie, syslog_ident. Likewise for Windows' event log. I don't think we
should consider it supported for multiple clusters to be logging into
the same plain files. So yeah, the use case for this seems unclear.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Evan Rempel 2016-02-18 22:05:11 Re: 9.5 new setting "cluster name" and logging
Previous Message Evan Rempel 2016-02-18 21:51:14 Re: 9.5 new setting "cluster name" and logging

Browse pgsql-hackers by date

  From Date Subject
Next Message Evan Rempel 2016-02-18 22:05:11 Re: 9.5 new setting "cluster name" and logging
Previous Message Evan Rempel 2016-02-18 21:51:14 Re: 9.5 new setting "cluster name" and logging