| From: | Heikki Linnakangas <hlinnaka(at)iki(dot)fi> | 
|---|---|
| To: | Robert Haas <robertmhaas(at)gmail(dot)com> | 
| Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, David G Johnston <david(dot)g(dot)johnston(at)gmail(dot)com> | 
| Subject: | Re: pgsql: Fix parallel index and index-only scans to fall back to serial. | 
| Date: | 2018-07-19 13:13:18 | 
| Message-ID: | 3495a1e1-d24a-3973-62c5-ce46dbffd567@iki.fi | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-committers pgsql-hackers | 
On 14/07/18 00:56, Robert Haas wrote:
> On Fri, Jul 13, 2018 at 2:22 PM, Heikki Linnakangas <hlinnaka(at)iki(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Haas | 2018-07-19 14:07:26 | Re: [COMMITTERS] pgsql: Give a better error message on invalid hostaddr option. | 
| Previous Message | Heikki Linnakangas | 2018-07-19 13:12:56 | pgsql: Rephrase a few comments for clarity. | 
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Fabien COELHO | 2018-07-19 13:35:44 | Re: pgbench-ycsb | 
| Previous Message | David Rowley | 2018-07-19 13:06:17 | Re: Internal error XX000 with enable_partition_pruning=on, pg 11 beta1 on Debian |