Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gp9ar-0002e2-N2 for pgsql-bugs@arkaria.postgresql.org; Thu, 31 Jan 2019 10:29:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gp9aq-0002JI-Da for pgsql-bugs@arkaria.postgresql.org; Thu, 31 Jan 2019 10:29:12 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gp9aq-0002JB-7S for pgsql-bugs@lists.postgresql.org; Thu, 31 Jan 2019 10:29:12 +0000 Received: from mo19.mail-out.ovh.net ([178.32.228.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gp9an-00034s-Kj for pgsql-bugs@lists.postgresql.org; Thu, 31 Jan 2019 10:29:11 +0000 Received: from EX2.emp.local (gw1.pro1.mail.ovh.net [79.137.0.65]) by mo19.mail-out.ovh.net (Postfix) with ESMTPS id A2F149FA23; Thu, 31 Jan 2019 11:29:06 +0100 (CET) Received: from DAG4EX2.emp.local (172.16.2.8) by EX2.emp.local (172.16.2.2) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1531.3; Thu, 31 Jan 2019 11:28:59 +0100 Received: from [192.168.1.24] (86.248.124.200) by DAG4EX2.emp.local (172.16.2.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1531.3; Thu, 31 Jan 2019 11:28:59 +0100 Subject: Re: BUG #15614: Query plan: buffer stats from workers in child operations discarded. To: , , "PG Bug reporting form" References: <15614-a02a45f185d527bc@postgresql.org> From: Adrien NAYRAT Message-ID: <2d481e42-ffca-3d3f-7d6d-921575e47685@anayrat.info> Date: Thu, 31 Jan 2019 11:28:58 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <15614-a02a45f185d527bc@postgresql.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US-large Content-Transfer-Encoding: 7bit X-Originating-IP: [86.248.124.200] X-ClientProxiedBy: EX2.emp.local (172.16.2.2) To DAG4EX2.emp.local (172.16.2.8) X-Ovh-Tracer-Id: 14839923723188009523 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtledrjeeigdduiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecu List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/31/19 10:33 AM, PG Bug reporting form wrote: > The following bug has been logged on the website: > > Bug reference: 15614 > Logged by: Dave Conlin > Email address: dc345@cantab.net > PostgreSQL version: 10.4 > Operating system: Windows 10 > Description: > > Hi folks - > > In the output of an `EXPLAIN` query, normally child operations are included > in the totals for the buffers values, eg "Shared Hit Blocks". It seems that > when a parent operation is single-threaded, but a child operation starts > workers, then only the buffers stats from the main thread in the child > operation are included in the totals for the parent operation. > Hello, This should have been fixed in 10.5 : https://www.postgresql.org/docs/current/release-10-5.html > Fix EXPLAIN's accounting for resource usage, particularly buffer accesses, in parallel workers (Amit Kapila, Robert Haas) Could you apply the minor update and test again? Regards,