pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Seltenreich <seltenreich@gmx.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: [sqlsmith] Failed assertion in parallel worker in ExecInitSubPlan
Date: Thu, 24 Nov 2016 22:56:14 +0100
Message-ID: <874m2w4k5d.fsf@ex.ansel.ydns.eu> (raw)
In-Reply-To: <19006.1479744058@sss.pgh.pa.us>
References: <8737im6pmh.fsf@credativ.de>
	<CAA4eK1KHO2bVkeiDuRmruwZs-VqNRmqRmiVcN6PRfW1HpgPrpg@mail.gmail.com>
	<CAA4eK1+0MUZUvMNuO6SLzjEwD2KVWssDL3G=AiBHHQTzxWnm1w@mail.gmail.com>
	<19006.1479744058@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Hi,

just caught another InitPlan below Gather with the recent patches in
(master as of 4cc6a3f).  Recipe below.

regards,
andreas

set max_parallel_workers_per_gather = 2;
set min_parallel_relation_size = 0;
set parallel_setup_cost = 0;
set parallel_tuple_cost = 0;

explain select 1 from
   public.quad_point_tbl as ref_0,
   lateral (select
         ref_0.p as c3,
         sample_0.d as c5
       from
         public.nv_child_2010 as sample_0
           left join public.mvtest_tvv as ref_1
           on ('x'< (select contype from pg_catalog.pg_constraint limit 1))
       limit 82) as subq_0;

--                                                QUERY PLAN
-- --------------------------------------------------------------------------------------------------------
--  Gather  (cost=0.19..13727.52 rows=902246 width=4)
--    Workers Planned: 2
--    ->  Nested Loop  (cost=0.19..13727.52 rows=902246 width=4)
--          ->  Parallel Seq Scan on quad_point_tbl ref_0  (cost=0.00..105.85 rows=4585 width=16)
--          ->  Limit  (cost=0.19..1.33 rows=82 width=20)
--                InitPlan 1 (returns $0)
--                  ->  Limit  (cost=0.00..0.19 rows=1 width=1)
--                        ->  Gather  (cost=0.00..10.22 rows=54 width=1)
--                              Workers Planned: 2
--                              ->  Parallel Seq Scan on pg_constraint  (cost=0.00..10.22 rows=22 width=1)
--                ->  Seq Scan on nv_child_2010 sample_0  (cost=0.00..35.50 rows=2550 width=20)


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (10+ messages)  latest in thread

Message-ID: <874m2w4k5d.fsf@ex.ansel.ydns.eu>
Permalink:  ../874m2w4k5d.fsf@ex.ansel.ydns.eu/
Also on:    postgresql.org/message-id/874m2w4k5d.fsf@ex.ansel.ydns.eu

 · 

reply

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: seltenreich@gmx.de, tgl@sss.pgh.pa.us, amit.kapila16@gmail.com
  Subject: Re: [sqlsmith] Failed assertion in parallel worker in ExecInitSubPlan
  In-Reply-To: <874m2w4k5d.fsf@ex.ansel.ydns.eu>
  References: <8737im6pmh.fsf@credativ.de> <CAA4eK1KHO2bVkeiDuRmruwZs-VqNRmqRmiVcN6PRfW1HpgPrpg@mail.gmail.com> <CAA4eK1+0MUZUvMNuO6SLzjEwD2KVWssDL3G=AiBHHQTzxWnm1w@mail.gmail.com> <19006.1479744058@sss.pgh.pa.us> <874m2w4k5d.fsf@ex.ansel.ydns.eu>

* 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