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 1kM6aZ-0004l1-9F for pgsql-general@arkaria.postgresql.org; Sat, 26 Sep 2020 09:33:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kM6aY-0004Zo-0M for pgsql-general@arkaria.postgresql.org; Sat, 26 Sep 2020 09:33:54 +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 1kM6aX-0004Zh-MI for pgsql-general@lists.postgresql.org; Sat, 26 Sep 2020 09:33:53 +0000 Received: from mail-ej1-x642.google.com ([2a00:1450:4864:20::642]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kM6aQ-0001vn-Mk for pgsql-general@lists.postgresql.org; Sat, 26 Sep 2020 09:33:49 +0000 Received: by mail-ej1-x642.google.com with SMTP id lo4so1844776ejb.8 for ; Sat, 26 Sep 2020 02:33:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=Fjb9p5IiPCRoO3EUuZzAu9jxCslT5BFzZeQKSXzXNdQ=; b=V+xzDUE/2YkNx0h1Gij8weWWpquKT+Zc7D4diZtz6MPwSvHr+7bA46/xtB6FY/1yAH n1rtVtRTHfpQi1gekOkOPeQw7WfRZLmS8vpBrhKzaSnyxW/n3HPuJBj7ovZgKor3bkG2 B2qkUEpaV6oDlc4d+yXAjWgRrrgL9zYxF69pXBEVArCKvTL9hrWj96c8fINNLbW0u1A6 wyHnEz2mGPiMbR0nERvT0+SnD0NJQ0SV1AwwNyiL+zXw4srhoyeGz8xYflUfm+gCAPNp Q6cjNKBERHicjmXM/PJ9R0BtoTNwCOOEFg569GkIcLLo2x6gKWKEeeppKxRsUAfCDyeh FQwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=Fjb9p5IiPCRoO3EUuZzAu9jxCslT5BFzZeQKSXzXNdQ=; b=kHn+i7rkidN9Xr+ZnfUDZHlQgH0xxQQcW/9eWFabrte5TXoJNai1Qtu+Dp+h6C+zZ9 BZimBYZKv+JuOOo0PwJwJOzwzA4RKYfv4gGyxVl/QCtz/LFbJC5ul+p8rkq57Cumtypl TibtbRQSvT8SZ0kTNHVRCwUoxcysAJywbZ0oBsw+vLtyarlC39Jn+7si4wwUeXzZNFC7 5o+mjQvCoVQxPfXlzkA6i/qx6eNqujWh1/yMUUVsH3VoLdFIZpIpX/B+y+64r4PGmR04 eX9i9x86EIrmzOVqe5Q8MAiAxdLQeqTAIwTpCcPjYpwBKUP6JwKFXxKsEgmL1Asv9BGU c6IA== X-Gm-Message-State: AOAM531VBHE5brZons6G+5wzpVdNOf8ocAKaXIQVifrkalwbSWf3Y5VJ Nmw0qO8c/ZL23J+3CVRSe/0zGW8a+jk= X-Google-Smtp-Source: ABdhPJwFC+RnjrDGSwcCBTNkmtsQEyHmvnllASwGwhk7mC95n74AIllrbrj5yXL3Zu2NyGXgdMNFMg== X-Received: by 2002:a17:906:7c82:: with SMTP id w2mr6580457ejo.87.1601112824297; Sat, 26 Sep 2020 02:33:44 -0700 (PDT) Received: from [192.168.1.8] (241-57-239-77.dyn.cable.fcom.ch. [77.239.57.241]) by smtp.gmail.com with ESMTPSA id m7sm4476057edv.88.2020.09.26.02.33.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Sep 2020 02:33:43 -0700 (PDT) From: =?utf-8?Q?Paul_F=C3=B6rster?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: pg_upgrade Python version issue on openSUSE Message-Id: <553A044A-D0E3-475D-8DC0-5845381CB086@gmail.com> Date: Sat, 26 Sep 2020 11:33:42 +0200 To: PostgreSQL General X-Mailer: Apple Mail (2.3608.120.23.2.4) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, the OS here is openSUSE Leap 15.2. I downloaded the PostgreSQL 13.0 = source and built it without issues like so: (pgTargetDir is /data/postgres/13.0) $ ./configure \ --prefix=3D${pgTargetDir} \ --enable-nls \ --with-icu \ --with-perl \ --with-python \ --with-openssl \ --with-ldap \ --with-libxml \ --with-tclconfig=3D/usr/lib64 $ make install-world As I said, no issues at all so far. Now, I set the new environment for = version 13.0 and do: $ initdb -D "${PGDATANEW}" \ -k \ --encoding=3Dutf8 \ --lc-collate=3Den_US.UTF-8 \ --lc-ctype=3Den_US.UTF-8 \ --wal-segsize=3D32 Still, no issues and all is well. Now comes the problem: I run pg_upgrade and it spits out problems with = plpython2: $ pg_upgrade --check -k Performing Consistency Checks on Old Live Server ------------------------------------------------ Checking cluster versions ok Checking database user is the install user ok Checking database connection settings ok Checking for prepared transactions ok Checking for reg* data types in user tables ok Checking for contrib/isn with bigint-passing mismatch ok 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 Failure, exiting $ cat loadable_libraries.txt=20 could not load library "$libdir/plpython2": ERROR: could not access = file "$libdir/plpython2": No such file or directory In database: postgres openSUSE has no python2 anymore, only python3. The source database does = not even have plpython installed: postgres=3D# select name, version from pg_available_extension_versions postgres-# where installed; name | version=20 ---------+--------- plperlu | 1.0 dblink | 1.2 plpgsql | 1.0 plperl | 1.0 (4 rows) Can you please tell me what I am doing wrong here? Yes, I could compile = the source without Python in this particular case, because it is not = needed on this particular database cluster. But we have many more = database clusters and a bunch of them uses plpython, so I definitely = need it. To better be safe than sorry, I want the issue resolved before = migrations start, even for database clusters which don't need it. Any help would be appreciated. Thanks very much in advance. Cheers, Paul=