Re: Difference in execution plans pg12 vs pg14

From: Дмитрий Иванов <firstdismay(at)gmail(dot)com>
To: Imre Samu <pella(dot)samu(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Difference in execution plans pg12 vs pg14
Date: 2021-12-11 09:32:01
Message-ID: CAPL5KHq8zfWPzueCemXw4c+U568PoDfqo3wBDNm3KAyvybdaMQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ok, I will check.
Now I have even more questions. This behavior appeared, it was not there in
the first place. jit-compilation down my long aggregation queries by about
half on average. How do I adjust this correctly?

#jit_provider = 'llvmjit' # JIT library to use
#jit_above_cost = 100000 # perform JIT compilation if available
# and query more expensive than this;
# -1 disables
#jit_inline_above_cost = 500000 # inline small functions if query is
# more expensive than this; -1 disables
#jit_optimize_above_cost = 500000 # use expensive JIT optimizations if
# query is more expensive than this;
# -1 disables
jit = off # allow JIT compilation
--
Regards, Dmitry!

сб, 11 дек. 2021 г. в 09:12, Imre Samu <pella(dot)samu(at)gmail(dot)com>:

> Hi Dmitry,
>
> pg12:
> > Execution Time: 44.123 ms
>
> pg14:
> > JIT:
> > Functions: 167
> > Options: Inlining true, Optimization true, Expressions true, Deforming
> true
> > Timing: Generation 9.468 ms, Inlining 55.237 ms, Optimization 507.548
> ms, Emission 347.932 ms, Total 920.185 ms
> > Execution Time: 963.258 ms
>
> please check the JIT settings ;
> and test with: jit = off;
>
> regards,
> Imre
>
>
> Дмитрий Иванов <firstdismay(at)gmail(dot)com> ezt írta (időpont: 2021. dec. 11.,
> Szo, 2:01):
>
>> Afternoon. I was able to make the necessary changes to my base needed to
>> migrate win_pg12 to debian pg14.
>> But there is a new problem, which was not there at the initial stage so I
>> checked:
>>
>> win_pg12:
>> -> Index Scan using index_class_tree_full on class c (cost=0.28..2.50
>> rows=1 width=235) (actual time=0.030..0.032 rows=1 loops=1)
>> Index Cond: (id = 650)
>> debian_pg14:
>> -> Index Scan using index_class_tree_full on class c (cost=0.28..2.50
>> rows=1 width=235) (actual time=842.795..842.796 rows=1 loops=1)
>> Index Cond: (id = 650)
>>
>> I'm wondering where to dig next...
>> --
>> Best regards, Dmitry!
>>
>

Attachment Content-Type Size
exp_pg_14_jit_off.txt text/plain 11.1 KB

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter J. Holzer 2021-12-11 11:18:18 Re: Difference in execution plans pg12 vs pg14
Previous Message Imre Samu 2021-12-11 04:12:23 Re: Difference in execution plans pg12 vs pg14