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 1h2MF0-0001mc-8C for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Mar 2019 20:37:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h2MEy-0008Q0-3j for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Mar 2019 20:37:12 +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 1h2MEx-0008Ps-PS for pgsql-hackers@lists.postgresql.org; Fri, 08 Mar 2019 20:37:11 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h2MEr-0004UA-0R for pgsql-hackers@postgresql.org; Fri, 08 Mar 2019 20:37:10 +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 x28Kax5P024819; Fri, 8 Mar 2019 15:36:59 -0500 From: Tom Lane To: Etsuro Fujita cc: Robert Haas , Pg Hackers Subject: Re: Oddity with parallel safety test for scan/join target in grouping_planner In-reply-to: <5C7908B9.5070407@lab.ntt.co.jp> References: <5C75303E.8020303@lab.ntt.co.jp> <5C7908B9.5070407@lab.ntt.co.jp> Comments: In-reply-to Etsuro Fujita message dated "Fri, 01 Mar 2019 19:26:01 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24817.1552077419.1@sss.pgh.pa.us> Date: Fri, 08 Mar 2019 15:36:59 -0500 Message-ID: <24818.1552077419@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Etsuro Fujita writes: > (2019/02/28 0:52), Robert Haas wrote: >> On Tue, Feb 26, 2019 at 7:26 AM Etsuro Fujita >> wrote: >>> The parallel safety of the final scan/join target is determined from the >>> grouping target, not that target, which [ is wrong ] >> Your patch looks right to me. > I think it would be better for you to take this one. Could you? I concur with Robert that this is a brown-paper-bag-grade bug in 960df2a97. Please feel free to push (and don't forget to back-patch). The only really interesting question is whether it's worth adding a regression test for. I doubt it; the issue seems much too narrow. Usually the point of a regression test is to prevent re-introduction of the same/similar bug, but what class of bugs would you argue we'd be protecting against? regards, tom lane