Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WY850-0008Uj-8G for pgsql-bugs@arkaria.postgresql.org; Thu, 10 Apr 2014 06:03:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WY84z-0005bh-Ob for pgsql-bugs@arkaria.postgresql.org; Thu, 10 Apr 2014 06:03:17 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WY84y-0005ba-NV for pgsql-bugs@postgresql.org; Thu, 10 Apr 2014 06:03:16 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WY84w-000761-7q for pgsql-bugs@postgresql.org; Thu, 10 Apr 2014 06:03:16 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id s3A63Ae16957; Wed, 9 Apr 2014 23:03:10 -0700 Message-ID: <53463419.2090407@hogranch.com> Date: Wed, 09 Apr 2014 23:03:05 -0700 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org, pg@heroku.com Subject: Re: log_checkpoints, microseconds References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean 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 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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs