Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8tHs-0003ii-Jr for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Nov 2016 18:25:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c8tHs-00014S-6X for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Nov 2016 18:25:52 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c8tHq-00013p-Vr for pgsql-hackers@postgresql.org; Mon, 21 Nov 2016 18:25:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c8tHm-0001tq-AL for pgsql-hackers@postgresql.org; Mon, 21 Nov 2016 18:25:48 +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 uALIPYWx028498; Mon, 21 Nov 2016 13:25:34 -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: 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> <25380.1479751212@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Mon, 21 Nov 2016 13:14:52 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28496.1479752734.1@sss.pgh.pa.us> Date: Mon, 21 Nov 2016 13:25:34 -0500 Message-ID: <28497.1479752734@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 Robert Haas writes: > On Mon, Nov 21, 2016 at 1:00 PM, Tom Lane wrote: >> 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 :-( > That sucks. Any idea how we might salvage it? I just disabled it by checking to see if any Params have been created. It might be possible to be more refined, but I dunno that adding more bookkeeping would pay for itself. 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