Re: BUG #18588: Cannot force/let database use parallel execution in simple case.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Maxim Boguk <maxim(dot)boguk(at)gmail(dot)com>
Cc: David Rowley <dgrowleyml(at)gmail(dot)com>, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #18588: Cannot force/let database use parallel execution in simple case.
Date: 2024-08-22 19:01:56
Message-ID: 2059550.1724353316@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Maxim Boguk <maxim(dot)boguk(at)gmail(dot)com> writes:
> Ok there are reproducer test case on the stock postgresql 16.4 config:

Hmm, you can see both behaviors on the small version of t1, just by
varying the comparison constant in the WHERE clause. For me, it'll
use only one worker with "where a<1", and not parallelize at all
with "where a<0". It looks like it's deciding that it's not worth
starting workers when too few rows are expected to be returned. That
would be unsurprising with a normal setting of parallel_setup_cost,
but it does seem odd with parallel_setup_cost=0.

In any case, I think this isn't about the big table being big but
about changing the range of values of "a", which changes the
selectivity of "where a<10" 100-fold.

(I tested on HEAD not v16)

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Maxim Boguk 2024-08-22 20:27:24 Re: BUG #18588: Cannot force/let database use parallel execution in simple case.
Previous Message Maxim Boguk 2024-08-22 17:05:50 Re: BUG #18588: Cannot force/let database use parallel execution in simple case.