Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8rhG-0007kD-FD for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Nov 2016 16:43:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c8rhF-0006tc-SJ for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Nov 2016 16:43:57 +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 1c8rhD-0006s3-Sn for pgsql-hackers@postgresql.org; Mon, 21 Nov 2016 16:43:55 +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 1c8rhB-0008JH-BI for pgsql-hackers@postgresql.org; Mon, 21 Nov 2016 16:43:55 +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 uALGhm3R021818; Mon, 21 Nov 2016 11:43:48 -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: <21029.1479745578@sss.pgh.pa.us> References: <878tse6yvf.fsf@credativ.de> <21029.1479745578@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Mon, 21 Nov 2016 11:26:18 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <21816.1479746628.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 21 Nov 2016 11:43:48 -0500 Message-ID: <21817.1479746628@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: > Like Ashutosh, I can't reproduce the crash, so it's hard to speculate much > further. Ah-hah: now I can. The recipe lacks these important steps: set parallel_setup_cost TO 0; set parallel_tuple_cost TO 0; That changes the plan to Limit (cost=3D0.00..0.06 rows=3D1 width=3D64) -> Nested Loop (cost=3D0.00..57.25 rows=3D1000 width=3D64) -> Function Scan on pg_show_all_settings a (cost=3D0.00..10.00 r= ows=3D1000 width=3D64) -> Limit (cost=3D0.00..0.03 rows=3D1 width=3D32) -> Gather (cost=3D0.00..3.54 rows=3D130 width=3D32) Workers Planned: 2 -> Parallel Seq Scan on pg_opclass (cost=3D0.00..3.5= 4 rows=3D54 width=3D32) 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? regards, tom lane --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers