From: | Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com> |
---|---|
To: | Joe Conway <mail(at)joeconway(dot)com> |
Cc: | Andres Freund <andres(at)anarazel(dot)de>, Evan Rempel <erempel(at)uvic(dot)ca>, pgsql-admin(at)postgresql(dot)org, Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [ADMIN] 9.5 new setting "cluster name" and logging |
Date: | 2016-02-08 20:36:17 |
Message-ID: | CAEepm=3vqzfOuPa=L-qQWuHE5FJWJoWQc3N6aGS_-70Bz1oo8Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-hackers |
On Tue, Feb 9, 2016 at 5:30 AM, Joe Conway <mail(at)joeconway(dot)com> wrote:
> On 02/08/2016 06:24 AM, Andres Freund wrote:
>> On 2016-01-29 22:19:45 -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.
>>
>> I've argued[1][2] for this when cluster_name was introduced, but back
>> then I seemed to have been the only one arguing for it. Josh later
>> jumped that train.
>>
>> Given that we now had a number of people wishing for this, can we maybe
>> reconsider?
>
> Seems like a reasonable idea to me. But if we add a log_line_prefix
> setting, shouldn't we also add it to csvlog output too?
Here's a tiny patch adding support for %C to log_line_prefix (this was
part of the cluster_name patch that didn't go it).
Given that csvlog's output format is hardcoded in write_csvlog, how is
it supposed to evolve without upsetting consumers of this data?
Wouldn't we first need to add a GUC that lets you control the columns
it outputs?
--
Thomas Munro
http://www.enterprisedb.com
Attachment | Content-Type | Size |
---|---|---|
cluster_name_log_line_prefix.patch | application/octet-stream | 2.1 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Stephen Frost | 2016-02-08 20:42:06 | Re: [ADMIN] 9.5 new setting "cluster name" and logging |
Previous Message | kwfarrell | 2016-02-08 20:28:00 | Re: A local replication entry |
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2016-02-08 20:41:23 | Re: Tracing down buildfarm "postmaster does not shut down" failures |
Previous Message | Filip Rembiałkowski | 2016-02-08 20:33:43 | Re: proposal: make NOTIFY list de-duplication optional |