Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WYKXs-0002Uc-PD for pgsql-bugs@arkaria.postgresql.org; Thu, 10 Apr 2014 19:21:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WYKXs-00067x-1G for pgsql-bugs@arkaria.postgresql.org; Thu, 10 Apr 2014 19:21:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WYKXq-00067o-3W for pgsql-bugs@postgresql.org; Thu, 10 Apr 2014 19:21:54 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WYKXn-0007lo-Ov for pgsql-bugs@postgresql.org; Thu, 10 Apr 2014 19:21:53 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s3AJKFlf020786; Thu, 10 Apr 2014 15:20:15 -0400 From: Tom Lane To: Peter Geoghegan cc: Greg Stark , John R Pierce , PostgreSQL Bugs Subject: Re: log_checkpoints, microseconds In-reply-to: References: <53463419.2090407@hogranch.com> Comments: In-reply-to Peter Geoghegan message dated "Thu, 10 Apr 2014 12:10:31 -0700" Date: Thu, 10 Apr 2014 15:20:15 -0400 Message-ID: <20785.1397157615@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Peter Geoghegan writes: > On Thu, Apr 10, 2014 at 11:45 AM, Greg Stark wrote: >> I think his point is that to go from microseconds to msec (which I >> think should just be "ms" btw) you want to multiply by 1000 not >> divide. > Right. I think you're both wrong. 1000 usec = 1 msec, not the other way round. > Or just use the INSTR_TIME_GET_MILLISEC() macro to begin with, > and do neither. The code appears to be trying to track stats at the microsecond level. The printout is following a policy decision that we prefer to report units of msec, but that does not mean that we shouldn't keep microsecond precision internally. In short, I see nothing that needs fixed here. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs