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 1jUdsr-00074M-OM for pgsql-general@arkaria.postgresql.org; Fri, 01 May 2020 22:11:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jUdsq-0001yc-3P for pgsql-general@arkaria.postgresql.org; Fri, 01 May 2020 22:11:48 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jUdso-0001st-Ac for pgsql-general@lists.postgresql.org; Fri, 01 May 2020 22:11:47 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jUdsl-0002yj-4U for pgsql-general@postgresql.org; Fri, 01 May 2020 22:11:45 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 9A0645C0460; Fri, 1 May 2020 18:11:41 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 01 May 2020 18:11:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=G qdu3OF8QBJ6XioX6r87UHij6JkDqrAK1qRb0iv6ZT8=; b=KCOrgI51JG4dZoctl SwI5lrVSO5boVzDEvxbstMMsRL9VPCL10a65EO1hDY0UicHtiC2Mqgxi7Uu4w3oq Apjx6IcwonYP7zI1PyId8ININaNrn5trjZN4JPVeUzpx20WyUgoHJnsTbYRhwWsI HUD1M6HWNeI3cGTaMC1b3FP8NeBOwO6hZ3QAf/SFNXZ+262D27v8D1TNomFhtRye /GeNkAXfDIlLULqMFv306BNrrFZwOKGA74dK/vhWvIkdAzxkjCv6HCoJATDDuV3o 3XHZYsptvlBhU2IfHMoXQFlyjHVstqCiTEmBWcJ5gPV94jNbSeaV0pqvcFv4tetv 9nlYg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=Gqdu3OF8QBJ6XioX6r87UHij6JkDqrAK1qRb0iv6Z T8=; b=I5VG7hTgBmU5o8Mi4dRSZcqVQmGAXFsPaWJT/eEPprpDr/AVoMUodLEvK uTf8Fw7Zzv/0+ay6yxWMrxdvl2AMK44x2ebTwpZdBbrEVqvxteqwZr5E1HaCN+cL gTmgCRmIoxKTpL+bewuUN1YHb3Ed6Fjm+CtPJMYP2PkrhDyVbJoSn681FZENpRYK zHolMI/1r1ehKjAWyjx/EBn1DTEouXwMc2mjoArvZd4+151/gh9JL4IlzGCbEY8T 12s60okxkRqbIkDEyTOhIaFskFp4hCOyyLnsEhaGpAQCJ+xbGqtKhGifuaCBTUtO o+aV3DG3Y2OFkNnYO+BN9fqdqHVjA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrieekgddtiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthejre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpefgkeffjeeiff etleejgeegteetffeivdeltedtkedvgfekjeffveekueehkeefteenucffohhmrghinhep phhoshhtghhrvghsqhhlrdhorhhgpdhpohhsthhgrhgvshhqlhdqrghrtghhihhvvgdroh hrghenucfkphepjeehrddujedvrdehrddvfedunecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvh gvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id BA990328005E; Fri, 1 May 2020 18:11:40 -0400 (EDT) Subject: Re: Checking for Presence of Required Libraries Fails during PostgreSQL Upgrade To: TalGloz , pgsql-general@postgresql.org References: <1588370616126-0.post@n3.nabble.com> From: Adrian Klaver Message-ID: <218736a4-9a36-9e56-67cd-52e55f9ed3ce@aklaver.com> Date: Fri, 1 May 2020 15:11:39 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <1588370616126-0.post@n3.nabble.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/1/20 3:03 PM, TalGloz wrote: > I'm trying to upgrade my PostgreSQL form 10.2 to 11.7 (and eventually to > 12.x), when I run: > > /usr/pgsql-11/bin/pg_upgrade --old-bindir=/usr/pgsql-10/bin/ > --new-bindir=/usr/pgsql-11/bin/ --old-datadir=/var/lib/pgsql/10/data > --new-datadir=/var/lib/pgsql/11/data --check > > I get: > > Checking for presence of required libraries fatal > Your installation references loadable libraries that are missing from the > new installation. You can add these libraries to the new installation, > or remove the functions using them from the old installation. A list of > problem libraries is in the file: > loadable_libraries.txt" > > my loadable_libraries.txt file shows: > > could not load library "myfunc": ERROR: could not access file "myfunc": No > such file or directory > could not load library "randomness": ERROR: could not access file > "randomness": No such file or directory > could not load library "seal_diff_cpp": ERROR: could not access file > "seal_diff_cpp": No such file or directory > could not load library "seal_mean_cxx": ERROR: could not access file > "seal_mean_cxx": No such file or directory > could not load library "seal_mean_cxx_v2": ERROR: could not access file > "seal_mean_cxx_v2": No such file or directory > could not load library "seal_variance_cxx": ERROR: could not access file > "seal_variance_cxx": No such file or directory > could not load library "seal_diff_benchmark": ERROR: could not access file > "seal_diff_benchmark": No such file or Directory > > Running: > SELECT proname, probin, pronamespace > FROM pg_proc > WHERE probin IS NOT NULL AND pronamespace = 2200 > > Results in: > > | proname | probin | pronamespace > | bytea_size | randomness | 2200 > | sum_of_numbers | myfunc | 2200 > | seal_diff_cpp | seal_diff_cpp | 2200 > | seal_mean_cxx_v2 | seal_mean_cxx_v2 | 2200 > | seal_variance_cxx | seal_variance_cxx | 2200 > | seal_diff_benchmark | seal_diff_benchmark | 2200 > | seal_mean_cxx | seal_mean_cxx | 2200 > > All the 7 problematic libraries (.so) are manually created c extension > functions. I can't just move them to /usr/pgsql-11/lib/ because they we > compiled with PostgresSQL10 and not 11. Why not compile them against 11? Then follow step 5) here: https://www.postgresql.org/docs/12/pgupgrade.html > > How can I resolve this issue? How can I delete them properly if porting them > to 11 is a painful process? Deleting them directly form /usr/pgsql-10/lib/ > doesn't help. If there are objects in the 10 database that depend on the libraries then I imagine deleting them won't help. > > > > -- > Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html > > -- Adrian Klaver adrian.klaver@aklaver.com