Re: Parallel Index Scans

From: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Peter Geoghegan <pg(at)heroku(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Parallel Index Scans
Date: 2016-10-21 13:27:54
Message-ID: CAA4eK1+G-NLWhkjQN0ahgN7iE7La_S6xewgKdp_Pdgt8iv++yA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Oct 20, 2016 at 10:33 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> On Wed, Oct 19, 2016 at 11:07 PM, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
>>> Ideally, the parallel_workers storage parameter will rarely be
>>> necessary because the optimizer will generally do the right thing in
>>> all case.
>>
>> Yeah, we can choose not to provide any parameter for parallel index
>> scans, but some users might want to have a parameter similar to
>> parallel table scans, so it could be handy for them to use.
>
> I think the parallel_workers reloption should override the degree of
> parallelism for any sort of parallel scan on that table. Had I
> intended it to apply only to sequential scans, I would have named it
> differently.
>

I think there is big difference of size of relation to scan between
parallel sequential scan and parallel (range) index scan which could
make it difficult for user to choose the value of this parameter. Why
do you think that the parallel_workers reloption should suffice all
type of scans for a table? I could only think of providing it based
on thinking that lesser config knobs makes life easier.

--
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2016-10-21 13:47:18 Re: Fun fact about autovacuum and orphan temp tables
Previous Message Stephen Frost 2016-10-21 13:21:24 Re: Improve output of BitmapAnd EXPLAIN ANALYZE