Re: Finer grain log timestamps - Mailing list pgsql-hackers

From David Fetter
Subject Re: Finer grain log timestamps
Date
Msg-id 20220613070327.GC12494@fetter.org
Whole thread Raw
In response to Re: Finer grain log timestamps  (Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>)
List pgsql-hackers
On Mon, May 09, 2022 at 11:21:26AM +0100, Dagfinn Ilmari Mannsåker wrote:
> David Fetter <david@fetter.org> writes:
> 
> > diff --git src/backend/utils/error/elog.c src/backend/utils/error/elog.c
> > index 55ee5423af..4698e32ab7 100644
> > --- src/backend/utils/error/elog.c
> > +++ src/backend/utils/error/elog.c
> > @@ -2295,7 +2295,7 @@ char *
> >  get_formatted_log_time(void)
> >  {
> >      pg_time_t    stamp_time;
> > -    char        msbuf[13];
> > +    char        msbuf[16];
> 
> Now that it holds microseconds (µs), not milliseconds (ms), should it
> not be renamed to `usbuf`?

Good point.

Best,
David.
-- 
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

Attachment

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pltcl crash on recent macOS
Next
From: Erik Rijkers
Date:
Subject: Re: Parse CE and BCE in dates and times