pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: David G Johnston <david.g.johnston@gmail.com>
Subject: Re: pgsql: Fix parallel index and index-only scans to fall back to serial.
Date: Thu, 19 Jul 2018 16:13:18 +0300
Message-ID: <3495a1e1-d24a-3973-62c5-ce46dbffd567@iki.fi> (raw)
In-Reply-To: <CA+Tgmob-2ThLYikNPiRi12W3w16e920VVYUqh=_e9gCw4vnbWw@mail.gmail.com>
References: <E1clbTE-00063b-Ap@gemulon.postgresql.org>
	<1fec9022-41e8-e484-70ce-2179b08c2092@iki.fi>
	<CA+Tgmob-2ThLYikNPiRi12W3w16e920VVYUqh=_e9gCw4vnbWw@mail.gmail.com>

On 14/07/18 00:56, Robert Haas wrote:
> On Fri, Jul 13, 2018 at 2:22 PM, Heikki Linnakangas <hlinnaka@iki.fi> wrote:
>> I just bumped into this comment, from commit 09529a70bb5, and I can't make
>> sense of it:
>>
>>> +               /*
>>> +                * We reach here if the index only scan is not parallel,
>>> or if we're
>>> +                * executing a index only scan that was intended to be
>>> parallel
>>> +                * serially.
>>> +                */
>>
>>
>> What was that intended to say?
> 
> There are two ways that you can reach that code.  One is that you have
> the thing that shows up in EXPLAIN output as "Index-Only Scan".  The
> other is that you have the thing that shows up in EXPLAIN output as
> "Parallel Index-Only Scan", but you didn't get any workers, so now
> you're falling back to running what was intended to be a parallel plan
> without parallelism i.e. serially.  The comment is intended to alert
> you to the fact that an intended-as-parallel scan can end up here in
> corner cases where the plan doesn't end up being parallel.  We've had
> some difficulty in consistently getting that case correct.

Ah, gotcha. I changed that (and the other copies) per David's suggestion.

- Heikki




view thread (5+ messages)

Message-ID: <3495a1e1-d24a-3973-62c5-ce46dbffd567@iki.fi>
Permalink:  ../3495a1e1-d24a-3973-62c5-ce46dbffd567@iki.fi/
Also on:    postgresql.org/message-id/3495a1e1-d24a-3973-62c5-ce46dbffd567@iki.fi

 · 

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-committers@postgresql.org
  Cc: hlinnaka@iki.fi, robertmhaas@gmail.com, pgsql-hackers@postgresql.org, amit.kapila16@gmail.com, david.g.johnston@gmail.com
  Subject: Re: pgsql: Fix parallel index and index-only scans to fall back to serial.
  In-Reply-To: <3495a1e1-d24a-3973-62c5-ce46dbffd567@iki.fi>
  References: <E1clbTE-00063b-Ap@gemulon.postgresql.org> <1fec9022-41e8-e484-70ce-2179b08c2092@iki.fi> <CA+Tgmob-2ThLYikNPiRi12W3w16e920VVYUqh=_e9gCw4vnbWw@mail.gmail.com> <3495a1e1-d24a-3973-62c5-ce46dbffd567@iki.fi>

* 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