Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8stG-0002f8-Kp for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Nov 2016 18:00:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c8stG-0001XH-2m for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Nov 2016 18:00:26 +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 1c8stF-0001X5-7p for pgsql-hackers@postgresql.org; Mon, 21 Nov 2016 18:00:25 +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.84_2) (envelope-from ) id 1c8st8-00030I-Oy for pgsql-hackers@postgresql.org; Mon, 21 Nov 2016 18:00:23 +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 uALI0CeY025381; Mon, 21 Nov 2016 13:00:12 -0500 From: Tom Lane To: Robert Haas cc: Andreas Seltenreich , "pgsql-hackers@postgresql.org" Subject: Re: [sqlsmith] Parallel worker crash on seqscan In-reply-to: <23874.1479749345@sss.pgh.pa.us> References: <878tse6yvf.fsf@credativ.de> <21029.1479745578@sss.pgh.pa.us> <21817.1479746628@sss.pgh.pa.us> <22470.1479747637@sss.pgh.pa.us> <23874.1479749345@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Mon, 21 Nov 2016 12:29:05 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25379.1479751212.1@sss.pgh.pa.us> Date: Mon, 21 Nov 2016 13:00:12 -0500 Message-ID: <25380.1479751212@sss.pgh.pa.us> X-Pg-Spam-Score: -4.9 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org I wrote: > Actually, the Gather path *isn't* parameterized. The problem here is > that we're planning an unflattened subquery, and the only thing that > is parallel-unsafe is that there is an outer Param in its toplevel tlist, > and we're somehow deciding that we can stick that unsafe tlist into (and > beneath) the Gather node. So something rotten in that area, but I've not > quite found it yet. Hah: not where I thought it was at all. The problem seems to be down to the optimization I put into is_parallel_safe() awhile back to skip testing anything if we previously found the entire querytree to be parallel-safe. Well, the raw query tree *is* parallel-safe. It's only when we inject some Params that we have a parallel hazard. So that optimization is too optimistic :-( regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers