From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Andreas Seltenreich <seltenreich@gmx.de>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: [sqlsmith] Parallel worker crash on seqscan
Date: Mon, 21 Nov 2016 11:43:48 -0500
Message-ID: <21817.1479746628@sss.pgh.pa.us> (raw)
In-Reply-To: <21029.1479745578@sss.pgh.pa.us>
References: <878tse6yvf.fsf@credativ.de>
<CA+TgmoZwEPy5xnCPnJiy0GHcDcK4c43itdLoGJ65nwLomDN9yQ@mail.gmail.com>
<21029.1479745578@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
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=0.00..0.06 rows=1 width=64)
-> Nested Loop (cost=0.00..57.25 rows=1000 width=64)
-> Function Scan on pg_show_all_settings a (cost=0.00..10.00 rows=1000 width=64)
-> Limit (cost=0.00..0.03 rows=1 width=32)
-> Gather (cost=0.00..3.54 rows=130 width=32)
Workers Planned: 2
-> Parallel Seq Scan on pg_opclass (cost=0.00..3.54 rows=54 width=32)
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
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, seltenreich@gmx.de
Subject: Re: [sqlsmith] Parallel worker crash on seqscan
In-Reply-To: <21817.1479746628@sss.pgh.pa.us>
References: <878tse6yvf.fsf@credativ.de> <CA+TgmoZwEPy5xnCPnJiy0GHcDcK4c43itdLoGJ65nwLomDN9yQ@mail.gmail.com> <21029.1479745578@sss.pgh.pa.us> <21817.1479746628@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox