Re: Postgresql 14 performance

From: Mladen Gogala <gogala(dot)mladen(at)gmail(dot)com>
To: Kenny Bachman <kenny(dot)bachman17(at)gmail(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Postgresql 14 performance
Date: 2022-08-21 22:49:15
Message-ID: 060a5606-86f8-4d36-999e-89e78a808096@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 8/21/22 16:13, Kenny Bachman wrote:
> Hi again,
>
> JIT is already enabled. And here is the perf top output:
>
Kenny, JIT is not mentioned in any of your plans. Look how it looks,
with JIT enabled:

QUERY PLAN
-------------------------------------------------------------------------------------------------------
 Aggregate  (cost=1682569.70..1682569.71 rows=1 width=8)
   ->  Nested Loop  (cost=0.00..1419035.94 rows=105413504 width=0)
         ->  Nested Loop  (cost=0.00..101365.96 rows=7529536 width=0)
               ->  Nested Loop  (cost=0.00..7245.59 rows=537824 width=0)
                     ->  Nested Loop  (cost=0.00..521.62 rows=38416
width=0)
                           ->  Nested Loop  (cost=0.00..40.24 rows=2744
width=0)
                                 ->  Nested Loop (cost=0.00..4.77
rows=196 width=0)
                                       ->  Seq Scan on emp e1 
(cost=0.00..1.14 rows=14 width=0)
                                       ->  Materialize (cost=0.00..1.21
rows=14 width=0)
                                             ->  Seq Scan on emp e2 
(cost=0.00..1.14 rows=14 width=0)
                                 ->  Materialize (cost=0.00..1.21
rows=14 width=0)
                                       ->  Seq Scan on emp e3 
(cost=0.00..1.14 rows=14 width=0)
                           ->  Materialize  (cost=0.00..1.21 rows=14
width=0)
                                 ->  Seq Scan on emp e4
(cost=0.00..1.14 rows=14 width=0)
                     ->  Materialize  (cost=0.00..1.21 rows=14 width=0)
                           ->  Seq Scan on emp e5 (cost=0.00..1.14
rows=14 width=0)
               ->  Materialize  (cost=0.00..1.21 rows=14 width=0)
                     ->  Seq Scan on emp e6  (cost=0.00..1.14 rows=14
width=0)
         ->  Materialize  (cost=0.00..1.21 rows=14 width=0)
               ->  Seq Scan on emp e7  (cost=0.00..1.14 rows=14 width=0)
* JIT:**
**   Functions: 14**
**   Options: Inlining true, Optimization true, Expressions true,
Deforming true**
**(23 rows)*

Look at the end. There is no such section in any of your plans.

Regards

--
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Jeff Janes 2022-08-22 00:46:39 Re: Postgresql 14 performance
Previous Message Kenny Bachman 2022-08-21 20:13:48 Re: Postgresql 14 performance