Re: 9.6beta, parallel execution and cpu_tuple_cost

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: 9.6beta, parallel execution and cpu_tuple_cost
Date: 2016-05-27 14:23:46
Message-ID: ni9l9k$nnb$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane schrieb am 27.05.2016 um 15:48:
> Thomas Kellerer <spam_eater(at)gmx(dot)net> writes:
>> while playing around with the parallel aggregates and seq scan in
>> 9.6beta I noticed that Postgres will stop using parallel plans when
>> cpu_tuple_cost is set to a very small number.
>
> If you don't reduce the parallel-plan cost factors proportionally,
> it's not very surprising that reducing that would tend to bias the
> planner away from using parallel plans. See parallel_setup_cost and
> parallel_tuple_cost.

Ah, thanks. That makes sense.

The low value for cpu_tuple_cost was actually a typo.

Adjusting parallel_tuple_cost does bring back the parallel plan.

Thomas

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Baldwin 2016-05-27 20:56:46 Migrate 2 DB's - v8.3
Previous Message Tom Lane 2016-05-27 13:48:48 Re: 9.6beta, parallel execution and cpu_tuple_cost