Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cO6PY-0002Kh-LS for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Jan 2017 17:28:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cO6PY-0000ks-8V for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Jan 2017 17:28:40 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cO6PX-0000jw-1T for pgsql-hackers@postgresql.org; Mon, 02 Jan 2017 17:28:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cO6PT-0008JC-Hm for pgsql-hackers@postgresql.org; Mon, 02 Jan 2017 17:28:37 +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 v02HSVS1020260; Mon, 2 Jan 2017 12:28:32 -0500 From: Tom Lane To: Fabien COELHO cc: PostgreSQL Developers Subject: Re: Fixing pgbench's logging of transaction timestamps In-reply-to: <18059.1483302133@sss.pgh.pa.us> References: <8837.1483216839@sss.pgh.pa.us> <18059.1483302133@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Sun, 01 Jan 2017 15:22:13 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20258.1483378111.1@sss.pgh.pa.us> Date: Mon, 02 Jan 2017 12:28:31 -0500 Message-ID: <20259.1483378111@sss.pgh.pa.us> X-Pg-Spam-Score: -5.1 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org I wrote: > BTW, why is it that the --aggregate-interval option is unsupported on > Windows? Is that an artifact of the same disease of assuming too much > about how instr_time is represented? I don't see any very good reason > for it other than the weird decision to store the result of > INSTR_TIME_GET_DOUBLE in a "long", which seems rather broken in any case. After looking closer, I see the real issue is that it prints the integer part of INSTR_TIME_GET_DOUBLE and documents that as being a Unix timestamp. So that's not going to do either. I solved it the same way as in the other code path, ie just eat the cost of doing our own time inquiry. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers