Re: log_checkpoints, microseconds

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-bugs(at)postgresql(dot)org, pg(at)heroku(dot)com
Subject: Re: log_checkpoints, microseconds
Date: 2014-04-10 06:03:05
Message-ID: 53463419.2090407@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2014-04-10 12:11:08 Re: BUG #8695: Reloading dump fails at COMMENT ON EXTENSION plpgsql
Previous Message Peter Geoghegan 2014-04-10 05:47:49 log_checkpoints, microseconds