Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g26fX-00065L-Mm for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Sep 2018 03:27:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g26fV-0007vU-Rs for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Sep 2018 03:27:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g26fV-0007vM-Le for pgsql-bugs@lists.postgresql.org; Tue, 18 Sep 2018 03:27:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g26fS-0002on-98 for pgsql-bugs@lists.postgresql.org; Tue, 18 Sep 2018 03:27:17 +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 w8I3R3O1019890; Mon, 17 Sep 2018 23:27:04 -0400 From: Tom Lane To: digoal@126.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15387: explain analyze timing on bug? In-reply-to: <153723873509.13484.12810806390117062364@wrigleys.postgresql.org> References: <153723873509.13484.12810806390117062364@wrigleys.postgresql.org> Comments: In-reply-to =?utf-8?q?PG_Bug_reporting_form?= message dated "Tue, 18 Sep 2018 02:45:35 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19888.1537241223.1@sss.pgh.pa.us> Date: Mon, 17 Sep 2018 23:27:03 -0400 Message-ID: <19889.1537241223@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?utf-8?q?PG_Bug_reporting_form?= writes: > why turn timing on increment about 26ms ? That's the cost of reading the system clock 200000 times (once per entry and exit to the SeqScan node). So apparently that takes about 130ns on your hardware, which is not great, but not awful either. See https://www.postgresql.org/message-id/flat/31856.1400021891%40sss.pgh.pa.us for some more context. regards, tom lane