Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYEVw-0007MM-9A for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Aug 2016 15:36:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bYEVv-0000La-SI for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Aug 2016 15:36:51 +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 1bYEUX-00062p-LM for pgsql-hackers@postgresql.org; Fri, 12 Aug 2016 15:35:25 +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 1bYEUV-0004Hy-3v for pgsql-hackers@postgresql.org; Fri, 12 Aug 2016 15:35:24 +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 u7CFZJKG029521; Fri, 12 Aug 2016 11:35:20 -0400 From: Tom Lane To: maksim cc: pgsql-hackers@postgresql.org Subject: Re: Fwd: [BUG] Print timing statistics of trigger execution under turned off timing option of EXPLAIN ANALYZE In-reply-to: <081c0540-ecaa-bd29-3fd2-6358f3b359a9@postgrespro.ru> References: <57bd66d9-551f-3191-ff1f-88d554cac3b2@postgrespro.ru> <081c0540-ecaa-bd29-3fd2-6358f3b359a9@postgrespro.ru> Comments: In-reply-to maksim message dated "Fri, 12 Aug 2016 14:47:06 +0300" Date: Fri, 12 Aug 2016 11:35:19 -0400 Message-ID: <29520.1471016119@sss.pgh.pa.us> X-Pg-Spam-Score: -2.4 (--) 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 maksim writes: > postgres=# EXPLAIN (ANALYZE, timing false) insert INTO foo > values(1000001, ''); > QUERY PLAN > -------------------------------------------------------------------------- > Insert on foo (cost=0.00..0.01 rows=1 width=36) (actual rows=0 loops=1) > -> Result (cost=0.00..0.01 rows=1 width=36) (actual rows=1 loops=1) > Planning time: 0.038 ms > Trigger unique_foo_c1:*/time=0.000/* calls=1 > Execution time: 340.766 ms > (5 rows) Hmm, yeah, it shouldn't do that. > My patch fixes this problem. Will push, thanks. 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