Re: PATCH: numeric timestamp in log_line_prefix

From: Fabien COELHO <fabien(dot)coelho(at)mines-paristech(dot)fr>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andres Freund <andres(at)2ndquadrant(dot)com>, Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>, PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PATCH: numeric timestamp in log_line_prefix
Date: 2015-03-22 19:25:18
Message-ID: alpine.DEB.2.10.1503222020560.14445@sto
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


>> The proposed format is much simpler to manage in a script, and if you're
>> interested in runtime, its formatting would be less expensive than %t and
>> %m.
>
> Maybe, but do we really need two? How about just %M?

I guess Tomas put 2 formats because there was 2 time formats to begin
with, but truncating/rouding if someone really wants seconds is quite
easy.

> Also, having just one would open the door to calling it something like
> %u (for Unix timestamp),

I guess that is okay as well.

--
Fabien.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Janes 2015-03-22 19:26:46 Re: PATCH: numeric timestamp in log_line_prefix
Previous Message Tom Lane 2015-03-22 19:19:49 Re: PATCH: numeric timestamp in log_line_prefix