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 1441663374.10365.32.camel@jeff-desktop
Whole thread Raw
In response to Re: PATCH: numeric timestamp in log_line_prefix  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Responses Re: PATCH: numeric timestamp in log_line_prefix  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers
On Mon, 2015-09-07 at 18:28 -0300, Alvaro Herrera wrote:
> I noticed %t, but I don't think we care since the precision is so poor.
> Making m and n work in unison seems enough.  I think it would be
> reasonably simple to handle %t in the same way, but I'm not sure we
> care.

OK.

> I think the extra ugliness is warranted, since it's not THAT much
> additional ugliness, and not doing it could be considered a regression;
> apparently strftime can be slower even than snprintf, so doing it twice
> per log message might be excessive overhead.

Patch attached. Please take a quick look.

Regards,
    Jeff Davis




Attachment

pgsql-hackers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: WIP: Rework access method interface
Next
From: Alvaro Herrera
Date:
Subject: Re: PATCH: numeric timestamp in log_line_prefix