Re: log_checkpoints, microseconds - Mailing list pgsql-bugs

From John R Pierce
Subject Re: log_checkpoints, microseconds
Date
Msg-id 53463419.2090407@hogranch.com
Whole thread Raw
In response to log_checkpoints, microseconds  (Peter Geoghegan <pg@heroku.com>)
Responses Re: log_checkpoints, microseconds  (Greg Stark <stark@mit.edu>)
List pgsql-bugs
On 4/9/2014 10:47 PM, Peter Geoghegan wrote:
>     if (log_checkpoints)
>         elog(DEBUG1, "checkpoint sync: number=%d file=%s time=%.3f msec",
>              processed,
>              FilePathName(seg->mdfd_vfd),
>              (double) elapsed / 1000);
>
>     break;    /* out of retry loop */
> }
>
> Did the author of this code really intend that "elapsed" microseconds
> be divided by 1000 like this?

thats just for the log, and you'll note it says "%.3f msec" in the entry.

--
john r pierce                                      37N 122W
somewhere on the middle of the left coast

pgsql-bugs by date:

Previous
From: Peter Geoghegan
Date:
Subject: log_checkpoints, microseconds
Next
From: Bruce Momjian
Date:
Subject: Re: BUG #8695: Reloading dump fails at COMMENT ON EXTENSION plpgsql