Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIC3U-0001ag-DJ for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Nov 2017 11:22:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIC3T-0003cP-Kt for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Nov 2017 11:21:59 +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 1eIC3T-0003c9-3J for pgsql-hackers@lists.postgresql.org; Fri, 24 Nov 2017 11:21:59 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eIC3P-00063E-NY for pgsql-hackers@postgresql.org; Fri, 24 Nov 2017 11:21:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=Content-Type:MIME-Version:Reply-To:Message-ID:Subject:To:From:Date; bh=1/X9ZAUTYjrVAxGh+mqIHB6BHRWQlupvi258Hh4oQPA=; b=pfevwJ5aFm8cL0OAiNdWxL82GSL42D33ajOtL5KDTwJUGxtczVBgevCc8CqpFZaIMEaE+LNNE0/LDnef5UaZvLqJc1uzR8scB3cCWQpWecFmsPSnDBG6xuS0Ilqcup/xema+Wf9l4SFI7qJ1HRA7FO9ABjSBWHppocmTZ/ya9s0=; Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by depesz.com with esmtpa (Exim 4.84_2) (envelope-from ) id 1eIC3L-0005DW-M9 for pgsql-hackers@postgresql.org; Fri, 24 Nov 2017 12:21:51 +0100 Date: Fri, 24 Nov 2017 12:21:51 +0100 From: hubert depesz lubaczewski To: pgsql-hackers mailing list Subject: explain analyze output with parallel workers - question about meaning of information for explain.depesz.com Message-ID: <20171124112151.GA6616@depesz.com> Reply-To: depesz@depesz.com MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, up to parallel executions, when we had node in explain analyze showing "loops=x" with x more than 1, it meant that the "actual time" had to be multiplied by loops to get real time spent in a node. For example, check step 13 in https://explain.depesz.com/s/gNBd It shows time of 3ms, but loops of 1873, so the actual time is ~ 5600ms. But with parallel execution it seems to be no longer the case. For example: https://explain.depesz.com/s/LTMp or https://explain.depesz.com/s/QHRi It looks that the actual time is really actual time, and loops is "worker nodes + 1". Is that really the case? Should I, for explain.depesz.com, when dealing with partial* and parallel* nodes, use "loops=1" for calculation of exclusive/inclusive time? always? some other nodes? or am I missing something in here? Best regards, depesz