Re: pgsql: Fix parallel index and index-only scans to fall back to serial.

David G. Johnston <david.g.johnston@gmail.com>

From: "David G. Johnston" <david.g.johnston@gmail.com>
To: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: Robert Haas <rhaas@postgresql.org>, pgsql-hackers <pgsql-hackers@postgresql.org>, Amit Kapila <amit.kapila16@gmail.com>
Date: 2018-07-13T21:19:29Z
Lists: pgsql-hackers
On Fri, Jul 13, 2018 at 12:22 PM, Heikki Linnakangas <hlinnaka@iki.fi>
wrote:

> Hi!
>
> 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?
>
>
​I think...​

​...or if we're serially executing a[n] index only scan that was intended
to be [executed in] parallel​

s/​intended​/planned/ ?

David J.

Commits

  1. Rephrase a few comments for clarity.

  2. Fix parallel index and index-only scans to fall back to serial.