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 1gpDLm-0006ZI-UO for pgsql-bugs@arkaria.postgresql.org; Thu, 31 Jan 2019 14:29:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gpDLj-0001lW-EJ for pgsql-bugs@arkaria.postgresql.org; Thu, 31 Jan 2019 14:29:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gpDLj-0001kw-1t for pgsql-bugs@lists.postgresql.org; Thu, 31 Jan 2019 14:29:51 +0000 Received: from mta02.prd.rdg.aluminati.org ([94.76.243.215]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gpDLf-0000OY-M7 for pgsql-bugs@lists.postgresql.org; Thu, 31 Jan 2019 14:29:49 +0000 Received: from mta02.prd.rdg.aluminati.org (localhost [127.0.0.1]) by mta02.prd.rdg.aluminati.org (Postfix) with ESMTP id BBAD2241BA; Thu, 31 Jan 2019 14:29:45 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by mta02.prd.rdg.aluminati.org (Postfix) with ESMTP id B51D3346F; Thu, 31 Jan 2019 14:29:45 +0000 (GMT) Authentication-Results: mta02.prd.rdg.aluminati.org (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=cantab.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cantab.net; h= content-transfer-encoding:content-language:in-reply-to :mime-version:user-agent:date:date:message-id:from:from :references:subject:subject:received:received; s=dkim; t= 1548944984; bh=i53IcUq2XS4L68CBlstMKxpWS2WvM518iAT+G9z5kb8=; b=q +Df4krSq4pfqrnAzik+DZMXZ1vlGVxhlPUQMvAx88+/JHxgW2qe7gDuhjqh60NXC 7jQq6iOnWiwOPGMC/gCDSls1OecjXi4FuVoDMBdf6h2A4IX8Oi4JNZQAKxrmv77D 7/+dSBnrEtxxfXRmzg6qc/36LxSEIkr3octQm+JUOpBQRMa4/1/YbOsXnxpxNDui nN4VN9TrypSBkVKlTByL2QueagMR8JmzDifT5ayLGXKeUKzbArplsS6opE6ef4JQ VS4n4nQT3ZaC6sDZ2yUkBO/TXzEnc7n21004Az0f6lyCrig1mI+9CL0M8o3f8ldV 7n0ZcG+nGni7RcI5BMCwA== X-Quarantine-ID: X-Virus-Scanned: Debian amavisd-new at mta02.prd.rdg.aluminati.org X-Spam-Flag: NO X-Spam-Score: -0.999 X-Spam-Level: X-Spam-Status: No, score=-0.999 tagged_above=-9999 required=5 tests=[ALL_TRUSTED=-1, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mta.aluminati.local ([127.0.0.1]) by localhost (mta02.prd.rdg.aluminati.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id NXdydFrA5hjO; Thu, 31 Jan 2019 14:29:44 +0000 (GMT) Received: from [192.168.1.54] (cpc148250-chap9-2-0-cust953.18-1.cable.virginm.net [77.102.183.186]) by mta02.prd.rdg.aluminati.org (Postfix) with ESMTPSA id 851E334BE; Thu, 31 Jan 2019 14:29:41 +0000 (GMT) Subject: Re: BUG #15614: Query plan: buffer stats from workers in child operations discarded. To: Adrien NAYRAT , pgsql-bugs@lists.postgresql.org References: <15614-a02a45f185d527bc@postgresql.org> <2d481e42-ffca-3d3f-7d6d-921575e47685@anayrat.info> From: David Conlin Message-ID: <1f5ac84b-1899-b908-746d-655a0abe3d87@cantab.net> Date: Thu, 31 Jan 2019 14:29:40 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <2d481e42-ffca-3d3f-7d6d-921575e47685@anayrat.info> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk It is, thanks a lot. Sorry, I should have checked - I thought the minor versions were getting=20 bugfixes, but I was just confused with the pre v10 way of numbering I thi= nk Thanks Dave On 31/01/2019 10:28, Adrien NAYRAT wrote: > On 1/31/19 10:33 AM, PG Bug reporting form wrote: >> The following bug has been logged on the website: >> >> Bug reference:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 15614 >> Logged by:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Dave = Conlin >> Email address:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 dc345@cantab.net >> PostgreSQL version: 10.4 >> Operating system:=C2=A0=C2=A0 Windows 10 >> Description: >> >> Hi folks - >> >> In the output of an `EXPLAIN` query, normally child operations are=20 >> included >> in the totals for the buffers values, eg "Shared Hit Blocks". It=20 >> seems that >> when a parent operation is single-threaded, but a child operation star= ts >> 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=20 > accesses, in parallel workers (Amit Kapila, Robert Haas) > > Could you apply the minor update and test again? > > Regards, >