Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f5IGm-0006UE-W6 for pgsql-committers@arkaria.postgresql.org; Sun, 08 Apr 2018 21:54:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f5IGl-0007ld-BU for pgsql-committers@arkaria.postgresql.org; Sun, 08 Apr 2018 21:54:39 +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.89) (envelope-from ) id 1f5IGl-0007lU-1r for pgsql-committers@lists.postgresql.org; Sun, 08 Apr 2018 21:54:39 +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.89) (envelope-from ) id 1f5IGi-0004RT-L9 for pgsql-committers@lists.postgresql.org; Sun, 08 Apr 2018 21:54:37 +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 w38LsVIF001877; Sun, 8 Apr 2018 17:54:31 -0400 From: Tom Lane To: Andrew Gierth cc: Alvaro Herrera , David Rowley , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Support partition pruning at execution time In-reply-to: <87k1tignsc.fsf@news-spur.riddles.org.uk> References: <20180408063734.titqzcvrzvrlp2bj@alvherre.pgsql> <87k1tignsc.fsf@news-spur.riddles.org.uk> Comments: In-reply-to Andrew Gierth message dated "Sun, 08 Apr 2018 08:31:48 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1875.1523224471.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 08 Apr 2018 17:54:31 -0400 Message-ID: <1876.1523224471@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andrew Gierth writes: > "Alvaro" =3D=3D Alvaro Herrera writes: > Alvaro> Thanks for cleaning that up. I'll look into why the test > Alvaro> (without this commit) fails with force_parallel_mode=3Dregress > Alvaro> next week. > Seems clear enough to me - the "Heap Fetches" statistic is kept in the > IndexOnlyScanState node in its own field, not part of ss.ps.instrument, > and is therefore not reported from workers to leader. BTW, pademelon just exhibited a different instability in this test: *** /home/bfarm/bf-data/HEAD/pgsql.build/src/test/regress/expected/partiti= on_prune.out Sun Apr 8 01:56:04 2018 --- /home/bfarm/bf-data/HEAD/pgsql.build/src/test/regress/results/partitio= n_prune.out Sun Apr 8 17:48:14 2018 *************** *** 1606,1612 **** -> Partial Aggregate (actual rows=3D1 loops=3D3) -> Parallel Append (actual rows=3D0 loops=3D3) Subplans Removed: 6 ! -> Parallel Seq Scan on ab_a2_b1 (actual rows=3D0 = loops=3D1) Filter: ((a >=3D $1) AND (a <=3D $2) AND (b <= 4)) -> Parallel Seq Scan on ab_a2_b2 (actual rows=3D0 = loops=3D1) Filter: ((a >=3D $1) AND (a <=3D $2) AND (b <= 4)) --- 1606,1612 ---- -> Partial Aggregate (actual rows=3D1 loops=3D3) -> Parallel Append (actual rows=3D0 loops=3D3) Subplans Removed: 6 ! -> Parallel Seq Scan on ab_a2_b1 (actual rows=3D0 = loops=3D2) Filter: ((a >=3D $1) AND (a <=3D $2) AND (b <= 4)) -> Parallel Seq Scan on ab_a2_b2 (actual rows=3D0 = loops=3D1) Filter: ((a >=3D $1) AND (a <=3D $2) AND (b <= 4)) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Dunno quite what to make of that, but this animal previously passed at commit = b47a86f Sun Apr 8 05:35:42 2018 UTC Attempt to stabilize partition_prune = test output. = so it's not a consistent failure. regards, tom lane