Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fQAPG-0000p8-Cc for pgsql-general@arkaria.postgresql.org; Tue, 05 Jun 2018 11:45:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fQAPE-0005S8-2r for pgsql-general@arkaria.postgresql.org; Tue, 05 Jun 2018 11:45:40 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fQAPD-0005Rx-NB for pgsql-general@lists.postgresql.org; Tue, 05 Jun 2018 11:45:39 +0000 Received: from [195.159.176.226] (helo=blaine.gmane.org) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fQAPA-0003O3-IJ for pgsql-general@postgresql.org; Tue, 05 Jun 2018 11:45:38 +0000 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fQAMz-0005YN-0b for pgsql-general@postgresql.org; Tue, 05 Jun 2018 13:43:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-general@postgresql.org From: Thomas Kellerer Subject: Postgres 11 beta - no JITing Date: Tue, 5 Jun 2018 13:45:26 +0200 Lines: 41 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 X-Mozilla-News-Host: news://news.gmane.org:119 Content-Language: en-GB X-Host-Lookup-Failed: Reverse DNS lookup failed for 195.159.176.226 (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello, I am trying to assess the benefits of the new JIT feature in Postgres 11. However I can't figure out how to enable it. I have a test server with "CentOS Linux release 7.5.1804" I installed the beta using: yum install https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7.4-x86_64/postgresql11-server-11.0-beta1_1PGDG.rhel7.x86_64.rpm yum install postgresql11 yum install postgresql11-server Then initdb and everything was up and running. I checked the installation: "show jit_provider" gives me: "llvmjit" "show jit" gives me: "on" pg_config reports that the beta was built with LLVM support. I see --with-llvm in the output as well as 'LLVM_CONFIG=/usr/lib64/llvm5.0/bin/llvm-config' But on my system there is no /usr/lib64/llvm5.0 So I ran "yum install llvm" which gave me: "llvm-libs-3.4.2-8.el7.x86_64" and "llvm-3.4.2-8.el7.x86_64" but still no /usr/lib64/llvm5.0) And installing clang, gave me: clang.x86_64 3.4.2-8.el7 The cost of my test query is around 250000 - so even with the default configuration I would expect JITing to jump in. As it didn't happen, I set jit_optimize_above_cost and jit_above_cost to 10, just to see what happens - still no JITing I have uploaded one sample plan: https://explain.depesz.com/s/aVj2 Is there anything I need to install or enable in addition to what I have described? I am not really experienced with managing a Linux system, so if I did some blatantly wrong things, please bare with me ;) Thanks Thomas