Re: Choosing parallel_degree - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: Choosing parallel_degree
Date
Msg-id CANP8+j+PCuSjfp2o3SNMof0akXjZnpGusg0BnVoaeC1W7Tohcg@mail.gmail.com
Whole thread Raw
In response to Re: Choosing parallel_degree  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Choosing parallel_degree  (Simon Riggs <simon@2ndquadrant.com>)
List pgsql-hackers
On 12 April 2016 at 13:53, Robert Haas <robertmhaas@gmail.com> wrote:
On Mon, Apr 11, 2016 at 5:45 PM, Simon Riggs <simon@2ndquadrant.com> wrote:
> On 8 April 2016 at 17:49, Robert Haas <robertmhaas@gmail.com> wrote:
>> With the patch, you can - if you wish - substitute
>> some other number for the one the planner comes up with.
>
> I saw you're using AccessExclusiveLock, the reason being it affects SELECTs.
>
> That is supposed to apply when things might change the answer from a SELECT,
> whereas this affects only the default for a plan.
>
> Can I change this to a lower setting? I would have done this before applying
> the patch, but you beat me to it.

I don't have a problem with reducing the lock level there, if we're
convinced that it's safe.

I'll run up a patch, with appropriate comments. 

--
Simon Riggs                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

pgsql-hackers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: Some other things about contrib/bloom and generic_xlog.c
Next
From: Pavel Stehule
Date:
Subject: Re: [COMMITTERS] pgsql: Code cleanup in the wake of recent LWLock refactoring.