pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gavin Flower <GavinFlower@archidevsys.co.nz>
To: Peter Geoghegan <pg@heroku.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Greg Stark <stark@mit.edu>
Cc: John R Pierce <pierce@hogranch.com>
Cc: PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Subject: Re: log_checkpoints, microseconds
Date: Fri, 11 Apr 2014 07:56:35 +1200
Message-ID: <5346F773.4080101@archidevsys.co.nz> (raw)
In-Reply-To: <CAM3SWZTJQK0tBEMTqetyOHAe50fnD56S3Lmr=NQRzy2pjF7E+g@mail.gmail.com>
References: <CAM3SWZSeqmy7YP71uZuYHiiRWXz_UTNF3GxSPAzE9mUH3c5d0w@mail.gmail.com>
	<53463419.2090407@hogranch.com>
	<CAM-w4HPNdfivUqROG5T-zEr8+kLsgTX-fChiX5dXdfYP+hGwhg@mail.gmail.com>
	<CAM3SWZT-tVb7Vk8RO98wq=1NHcrSWiC0dfatrKeEWPs-rkLLng@mail.gmail.com>
	<20785.1397157615@sss.pgh.pa.us>
	<CAM3SWZTJQK0tBEMTqetyOHAe50fnD56S3Lmr=NQRzy2pjF7E+g@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 11/04/14 07:43, Peter Geoghegan wrote:
> On Thu, Apr 10, 2014 at 12:20 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> I think you're both wrong.  1000 usec = 1 msec, not the other way round.
> Yes, but why would you ever want to divide any number of microseconds
> by 1000 like this, unless you were actually interested in nanoseconds?
> The point is that we start out with microseconds "elapsed" here, not
> milliseconds or seconds.
>
>
123456 microseconds = 123.456 milliseconds

So to get milliseconds you divide the number of microseconds by 1000.


Cheers,
Gavin


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (13+ messages)  latest in thread

Message-ID: <5346F773.4080101@archidevsys.co.nz>
Permalink:  ../5346F773.4080101@archidevsys.co.nz/
Also on:    postgresql.org/message-id/5346F773.4080101@archidevsys.co.nz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: GavinFlower@archidevsys.co.nz, pg@heroku.com, tgl@sss.pgh.pa.us, stark@mit.edu, pierce@hogranch.com
  Subject: Re: log_checkpoints, microseconds
  In-Reply-To: <5346F773.4080101@archidevsys.co.nz>
  References: <CAM3SWZSeqmy7YP71uZuYHiiRWXz_UTNF3GxSPAzE9mUH3c5d0w@mail.gmail.com> <53463419.2090407@hogranch.com> <CAM-w4HPNdfivUqROG5T-zEr8+kLsgTX-fChiX5dXdfYP+hGwhg@mail.gmail.com> <CAM3SWZT-tVb7Vk8RO98wq=1NHcrSWiC0dfatrKeEWPs-rkLLng@mail.gmail.com> <20785.1397157615@sss.pgh.pa.us> <CAM3SWZTJQK0tBEMTqetyOHAe50fnD56S3Lmr=NQRzy2pjF7E+g@mail.gmail.com> <5346F773.4080101@archidevsys.co.nz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox