pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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 13:25:34 -0500
Message-ID: <28497.1479752734@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+Tgmoac_PGrVOj2pHqTo0ugF58BkmZ=-7Z26neuB4QWgz8Dbg@mail.gmail.com>
References: <878tse6yvf.fsf@credativ.de>
	<CA+TgmoZwEPy5xnCPnJiy0GHcDcK4c43itdLoGJ65nwLomDN9yQ@mail.gmail.com>
	<21029.1479745578@sss.pgh.pa.us>
	<21817.1479746628@sss.pgh.pa.us>
	<CA+TgmoYvs0a=xhP_DS28Kuvy9_OaXdo1HQ5FB6r8wHPGopK6Lg@mail.gmail.com>
	<22470.1479747637@sss.pgh.pa.us>
	<CA+TgmoYQTTa8=7zu1er-2+sQS4jYa9JYVb=89UmvQUc6t4oReg@mail.gmail.com>
	<23874.1479749345@sss.pgh.pa.us>
	<25380.1479751212@sss.pgh.pa.us>
	<CA+Tgmoac_PGrVOj2pHqTo0ugF58BkmZ=-7Z26neuB4QWgz8Dbg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Robert Haas <robertmhaas@gmail.com> writes:
> On Mon, Nov 21, 2016 at 1:00 PM, Tom Lane <tgl@sss.pgh.pa.us> 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



view thread (15+ messages)  latest in thread

Message-ID: <28497.1479752734@sss.pgh.pa.us>
Permalink:  ../28497.1479752734@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28497.1479752734@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, seltenreich@gmx.de
  Subject: Re: [sqlsmith] Parallel worker crash on seqscan
  In-Reply-To: <28497.1479752734@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> <CA+TgmoYvs0a=xhP_DS28Kuvy9_OaXdo1HQ5FB6r8wHPGopK6Lg@mail.gmail.com> <22470.1479747637@sss.pgh.pa.us> <CA+TgmoYQTTa8=7zu1er-2+sQS4jYa9JYVb=89UmvQUc6t4oReg@mail.gmail.com> <23874.1479749345@sss.pgh.pa.us> <25380.1479751212@sss.pgh.pa.us> <CA+Tgmoac_PGrVOj2pHqTo0ugF58BkmZ=-7Z26neuB4QWgz8Dbg@mail.gmail.com> <28497.1479752734@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