Re: PATCH: numeric timestamp in log_line_prefix

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: PATCH: numeric timestamp in log_line_prefix
Дата
Msg-id 20150322013502.GC10795@momjian.us
обсуждение исходный текст
Ответ на PATCH: numeric timestamp in log_line_prefix  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Ответы Re: PATCH: numeric timestamp in log_line_prefix  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Список pgsql-hackers
On Sun, Mar 22, 2015 at 12:47:12AM +0100, Tomas Vondra wrote:
> Hi,
> 
> 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 propose adding two new log_line_prefix escape sequences - %T and %M,
> doing the same thing as %t and %m, but formatting the value as a number.
> 
> Patch attached, I'll add it to CF 2015-06.

Uh, I think you mean "number" here:
        <entry>Time stamp without milliseconds (as a numer)</entry>
-----

Also, what "number" do you mean?  Unix time since 1970?

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + Everyone has their own god. +



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: printing table in asciidoc with psql
Следующее
От: Jerry Sievers
Дата:
Сообщение: Re: Remove fsync ON/OFF as a visible option?