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 1nRF1J-00077z-AL for pgsql-general@arkaria.postgresql.org; Mon, 07 Mar 2022 15:11:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nRF1I-0007Me-8L for pgsql-general@arkaria.postgresql.org; Mon, 07 Mar 2022 15:11:32 +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 1nRF1H-0007MV-Rr for pgsql-general@lists.postgresql.org; Mon, 07 Mar 2022 15:11:31 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nRF1G-00024G-Kr for pgsql-general@lists.postgresql.org; Mon, 07 Mar 2022 15:11:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=g24FkqKr8yLwBlfKpwkRlWZw9tzo5fc5zLD0n5blY04=; b=XuOvjJilW5V/FO3YUZy5gJNvqv qA9Vx0Nd89eU01oLLx3G7g7fBHwYZtROet8bECSh1U5pLVEOmeDXYJHGGnv5wy5cS6oz7XV17kDfk yt7G33ZaKiPAWra+f8bTuqj7khvc0768fsz/HQcWC6pu7vHPr9jkWulC0iFahLHCRPi4=; Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by depesz.com with esmtpa (Exim 4.92) (envelope-from ) id 1nRF1E-0001QG-S8; Mon, 07 Mar 2022 16:11:28 +0100 Date: Mon, 7 Mar 2022 16:11:28 +0100 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Tom Lane Cc: PostgreSQL General , Andres Freund Subject: Re: Interesting fail when migrating Pg from Ubuntu Bionic to Focal Message-ID: <20220307151128.GA22074@depesz.com> Reply-To: depesz@depesz.com References: <20220303150428.GA26036@depesz.com> <20220303151156.GB26036@depesz.com> <20220303163921.GA10776@depesz.com> <20220303164401.GA13056@depesz.com> <3969790.1646420992@sss.pgh.pa.us> <20220304204510.GA21340@depesz.com> <3984384.1646431394@sss.pgh.pa.us> <20220306140402.GA6360@depesz.com> <2045.1646583000@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2045.1646583000@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, Mar 06, 2022 at 11:10:00AM -0500, Tom Lane wrote: > > I tore these boxes down, so can't check immediately, but I think > > I remember that you're right - single-row queries didn't use JIT. Got focal box up. Loaded schema for Pg. Initially select didn't break anything, but when I tuned down jit_above_cost so that it will kick in - got fails immediately. > FWIW, I went to the trouble of installing Ubuntu Focal on my > raspberry pi to see if I could duplicate this, and I couldn't. > However, what you get from a fresh install now is > $ dpkg -l | grep libllvm > ii libllvm10:arm64 1:10.0.0-4ubuntu1 arm64 Modular compiler and toolchain technologies, runtime library > not 9.0.1. I also found that Fedora 31/aarch64 is still downloadable, and > that does contain LLVM 9 ... and I could not reproduce it there either. Soo... plot thickens. Looks that pg 12 supplied by pgdg required libllvm9: =$ apt-cache show postgresql-12 | grep -E '^(Package|Version|Depends):' Package: postgresql-12 Version: 12.9-2.pgdg20.04+1 Depends: ..., libllvm9 (>= 1:9~svn298832-1~), ... Package: postgresql-12 Version: 12.9-0ubuntu0.20.04.1 Depends: ..., libllvm10 (>= 1:9~svn298832-1~), ... Package: postgresql-12 Version: 12.2-4 Depends: ..., libllvm10 (>= 1:9~svn298832-1~), ... Newer pg12 (12.10) from pgdg also depends on llvm9. Perhaps changing the deb to use/depend-on llvm10 would solve the problem, for now I'm not sure how to do it. Reached to Christoph about it. Best regards, depesz