Re: PATCH: numeric timestamp in log_line_prefix - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: PATCH: numeric timestamp in log_line_prefix
Date
Msg-id 1441657932.10365.11.camel@jeff-desktop
Whole thread Raw
In response to Re: PATCH: numeric timestamp in log_line_prefix  (Andres Freund <andres@2ndquadrant.com>)
Responses Re: PATCH: numeric timestamp in log_line_prefix
List pgsql-hackers
On Sun, 2015-03-22 at 19:47 +0100, Andres Freund wrote:
> On 2015-03-22 00:47:12 +0100, Tomas Vondra wrote:
> > from time to time I need to correlate PostgreSQL logs to other logs,
> > containing numeric timestamps - a prime example of that is pgbench. With
> > %t and %m that's not quite trivial, because of timezones etc.
> 
> I have a hard time seing this is sufficient cause for adding more format
> codes. They're not free runtime and documentation wise. -0.5 from me.

I am about to commit this patch (the one that adds a single extra
option). Although nothing is free, the cost seems very low, and at least
three people have expressed interest in this patch.

What tips the balance is that we expose the unix epoch in the pgbench
logs, as Tomas points out.

Regards,Jeff Davis





pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: [patch] Proposal for \rotate in psql
Next
From: Alvaro Herrera
Date:
Subject: Re: PATCH: numeric timestamp in log_line_prefix