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

From Tomas Vondra
Subject Re: PATCH: numeric timestamp in log_line_prefix
Date
Msg-id 55D8C1FE.3040107@2ndquadrant.com
Whole thread Raw
In response to PATCH: numeric timestamp in log_line_prefix  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Responses Re: PATCH: numeric timestamp in log_line_prefix  (Fabien COELHO <coelho@cri.ensmp.fr>)
List pgsql-hackers
Hi all,

attached is a v2 of the patch, reworked based on the comments.

1) fix the docs (explicitly say that it's a Unix epoch)

2) handle 'padding' properly

3) get rid of timestamp_str - use appendString* methods directly

4) support just the "with milliseconds" using '%n' escape sequence

All those changes are quite trivial. The only annoying bit is that both
'%u' and '%e' are already used, so none of the obvious choices for 'Unix
Epoch' are available. So I simply took (%m+1) which is %n.

regards

--
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment

pgsql-hackers by date:

Previous
From: Jeff Janes
Date:
Subject: Re: Test code is worth the space
Next
From: Tom Lane
Date:
Subject: Re: Error message with plpgsql CONTINUE