Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oPtkw-0000N4-CP for pgsql-admin@arkaria.postgresql.org; Sun, 21 Aug 2022 22:49:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oPtkv-0007o7-8d for pgsql-admin@arkaria.postgresql.org; Sun, 21 Aug 2022 22:49:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oPtku-0007nx-RS for pgsql-admin@lists.postgresql.org; Sun, 21 Aug 2022 22:49:20 +0000 Received: from mail-qv1-xf2b.google.com ([2607:f8b0:4864:20::f2b]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oPtks-0000fV-PU for pgsql-admin@lists.postgresql.org; Sun, 21 Aug 2022 22:49:20 +0000 Received: by mail-qv1-xf2b.google.com with SMTP id y4so7008290qvp.3 for ; Sun, 21 Aug 2022 15:49:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:from:to:cc; bh=TeGuiXyKC/xNM62t2PNBPCwXZyjjNud6RQ2XSQlEdS8=; b=I3kKQWWfxkWSMoh6UWQYZQQFtnZwOug/wCvoNG02HHWd/wB7xK+0bKhT++P369FoS6 qog4xLZeKGEuoQaVegiq15ylHQcHu5oqcPAzZA77PLU4I36q3Nfor8v1xZl+mQRJY04c PV5K1P85XoSNZNeUUysGDNmS/bqebd/ooEkEoOtshbQcSIHAcZUNH3nG8RKtFxDpa4ha N2swWiuAEzOVucBDuNI6KN81ZTHB/vdKo4lR3dHSwiTbc65aIn7PHIaXMmmcqZE8PKmQ wJh+5eQqh5tB7g+n2JYig24UcwAGc4TU1SokPVkaOVCs/y4geZLkxcHYoxe4t5mhFhXk ZFiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc; bh=TeGuiXyKC/xNM62t2PNBPCwXZyjjNud6RQ2XSQlEdS8=; b=m1Uq32Q9nnrzszrmqYSxNgM7/PTusp3Plq9Mqp9y+1Bt6aJfOaf6Hkl9SXzpLZhmZW dSKnYYfj4vKMQBu6hOrk366OZK4f+19EtI3uted7mbINF0yB1dyE4LNVSxyZKt+Muv2V RfMy06XuVFl2aqSaIl9TQLkU6b1Tstfli60yknGasExvEi6KZh4w+n27kjv1w/VZFcNN R79e5OnJlAj9uvbSg6NrYSJnuuhf5jIRjIZKcPlHXJ8yzGEPj0TOwIRVthWiupaYnQE8 f+kvxZzO+ukWvCg+6Hjm6eWAqELQjUg0FzEjvOzjntWoQU2UAhxGTeyPLSD0lcfoslGU PncQ== X-Gm-Message-State: ACgBeo3yiRokXe3nBbA5CQtBYmuRCBnTtSegd2O3IT1DYDQGswVWIDxg fyCoFzmA57WmBY5iAm+NzgsVX/7usAVsinMz X-Google-Smtp-Source: AA6agR7Pw5VvQbpmEZe2YDYd69HWukR0CK5Ztgt3lMFEncU7rl5fyZdi5mFNw5WhxShibuh5i3nXzw== X-Received: by 2002:a0c:802c:0:b0:478:de2c:9b6f with SMTP id 41-20020a0c802c000000b00478de2c9b6fmr13740237qva.89.1661122156717; Sun, 21 Aug 2022 15:49:16 -0700 (PDT) Received: from [192.168.2.100] (pool-72-79-30-4.nwrknj.east.verizon.net. [72.79.30.4]) by smtp.gmail.com with ESMTPSA id g7-20020a05620a40c700b006a6ebde4799sm8652983qko.90.2022.08.21.15.49.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 Aug 2022 15:49:15 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------FHnxOs4Qk0ajzCF8YPZjfKSB" Message-ID: <060a5606-86f8-4d36-999e-89e78a808096@gmail.com> Date: Sun, 21 Aug 2022 18:49:15 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: Postgresql 14 performance Content-Language: en-US To: Kenny Bachman Cc: pgsql-admin@lists.postgresql.org References: <62c9a8d8-8c0f-3c11-5cca-e05e126c25d8@gmail.com> <1821f1b5-aabc-6cc6-1d5b-26381c6270d9@gmail.com> From: Mladen Gogala In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------FHnxOs4Qk0ajzCF8YPZjfKSB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------FHnxOs4Qk0ajzCF8YPZjfKSB Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
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
--------------FHnxOs4Qk0ajzCF8YPZjfKSB--