Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8rxX-00006X-LT for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Nov 2016 17:00:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c8rxX-0001zJ-8C for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Nov 2016 17:00:47 +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 1c8rxW-0001z3-D6 for pgsql-hackers@postgresql.org; Mon, 21 Nov 2016 17:00:46 +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 1c8rxT-0000De-LO for pgsql-hackers@postgresql.org; Mon, 21 Nov 2016 17:00:45 +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 uALH0bws022471; Mon, 21 Nov 2016 12:00:37 -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> Comments: In-reply-to Robert Haas message dated "Mon, 21 Nov 2016 11:54:23 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22469.1479747637.1@sss.pgh.pa.us> Date: Mon, 21 Nov 2016 12:00:37 -0500 Message-ID: <22470.1479747637@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 11:43 AM, Tom Lane wrote: >> so what we've got is a case where a parameter computed by the FunctionScan >> (in the master) would need to be passed into the parallel workers at >> runtime. Do we have code for that at all? If so where is it? > No, that's not supposed to happen. OK, that makes this a planner failure: we should not have allowed this query to become parallelized. > Maybe it's checking the quals but not recursing into the tlist? It seems like maybe searching for individual Params is the wrong thing. Why are we allowing it to generate a parameterized Gather path at all? Given the lack of any way to transmit runtime param values to the worker, I can't see how that would ever work. 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