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 1kMB7S-00081g-89 for pgsql-general@arkaria.postgresql.org; Sat, 26 Sep 2020 14:24:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kMB7Q-00066Y-Sy for pgsql-general@arkaria.postgresql.org; Sat, 26 Sep 2020 14:24:08 +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 1kMB7Q-00066R-LH for pgsql-general@lists.postgresql.org; Sat, 26 Sep 2020 14:24:08 +0000 Received: from mail-ed1-x544.google.com ([2a00:1450:4864:20::544]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kMB7N-0006Op-22 for pgsql-general@lists.postgresql.org; Sat, 26 Sep 2020 14:24:07 +0000 Received: by mail-ed1-x544.google.com with SMTP id e22so5417731edq.6 for ; Sat, 26 Sep 2020 07:24:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ze47NX2HD2at0FXuBFMHHkwQcyO1QcVhsxnVEW8Hous=; b=fq7bs7MlCsCMLIVpmE9wZLybLi82AhumfQggLq+DS3Txalt0RwfbLYzAE64lCflFZH LoyyTKGX0w2fRkz4lAQJbcTaZvPyOnsycuwT/+ZOXMpIsuQgIXsPtX6GJTkqsSbizmMH WPBG9xqJ/Zdgrqt6Ws+PUibmmwYqd/yS0J5XLnRMD2nzyWbCuvqFEWYoS4C/LfHjihKx pXKFyVb0nK0TTnjm6phRsZkaRgpU7XnHqz72iAK8p/Z+Dl8uiy21bLpFqXdohPJcZ3KR bkLxoUtwUptp+JprXl2DBy5YKvtQinkXJ3v+gQ/ahXNwbF5ZZrinYbVQfcCGUliRyCEB xJzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ze47NX2HD2at0FXuBFMHHkwQcyO1QcVhsxnVEW8Hous=; b=cjfubz3mw+93dKkenJlqMtdadCPv1ApSIAgp9juzGTfQi+B+p2yv/YcIRfnxLqWG5F +40mqZJMRJRpc/oznOLwOgwu8ngA01uXsCnL1VKxs2URiTwLwB6hHsAdH/vw+ytwZjKS UBmj8Ei6ltM5f6DWQ/wWC/LZiddRqDSKSCHTHpj8qlJV0V8TP9aLx/HX2fJMcmFEH+Ol gYxzcHws80qtINnKWDS6fwd+HJGYvkjQpaJ52zqCSwdhqYAbD3HEAFDI/RgKtBQZtLCx XplaZFs9us+1pM+0Jb1GwRvGd/DNCfUs7ZTGTDxXwQHvx+CLZm1ygyAzKCDUs0rc52y8 VL2A== X-Gm-Message-State: AOAM530jb9X1jATWBuPdWeBQlnMkik/U8w1IrvYgVQSBVt3BmGHh+L3u KNWnI7YbtVw2uutNFCD7ALtPzSU2JDk= X-Google-Smtp-Source: ABdhPJyawpKgShLjj/Y/9loj8ey8QoqbHgJuP/kytZZzSJhXMEu6Su8QKndCh+PIE+f/ZrOyrCz5PQ== X-Received: by 2002:a50:a694:: with SMTP id e20mr6763035edc.114.1601130242959; Sat, 26 Sep 2020 07:24:02 -0700 (PDT) Received: from [192.168.1.145] (241-57-239-77.dyn.cable.fcom.ch. [77.239.57.241]) by smtp.gmail.com with ESMTPSA id t12sm4498754edy.61.2020.09.26.07.24.01 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Sep 2020 07:24:02 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: pg_upgrade Python version issue on openSUSE From: =?utf-8?Q?Paul_F=C3=B6rster?= In-Reply-To: <1990004.1601129252@sss.pgh.pa.us> Date: Sat, 26 Sep 2020 16:24:01 +0200 Cc: PostgreSQL General Content-Transfer-Encoding: quoted-printable Message-Id: <07289733-4A26-46AB-BCE1-EE39FAED7ADA@gmail.com> References: <553A044A-D0E3-475D-8DC0-5845381CB086@gmail.com> <1FB046FC-BE42-4D66-B0AE-E94B6CB9498E@gmail.com> <06317862-1908-48C7-8766-F6D1B4BFEB9F@gmail.com> <1990004.1601129252@sss.pgh.pa.us> To: Tom Lane 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 Tom, > On 26. Sep, 2020, at 16:07, Tom Lane wrote: >=20 > If you had plpythonu installed before, that's a plausible thing > to do. (There was discussion some time ago about making the > python-2-to-3 transition less painful for users, but we failed > to come to any consensus about how; so manual fixes like this > are going to be needed for a lot of people.) that's one of the things I very much don't like about Python. This = version 2 and 3 gibberish has been going on for years now wherever it's = used, be it packaging with operating systems or integrated into = applications. > However, I don't understand how "drop extension plpythonu" > worked for you, given your previous query showing that > that extension wasn't installed. that is exactly what I don't understand too. It should have shown up in = the query, but it didn't. The PostgreSQL 12.4 software was compiled = exactly the same way, only without ICU support. The other configure = options were the same. Other than that, I didn't change anything in my = build script. For your reference, below are the two configs: PostgreSQL 12.4: $ pg_config=20 BINDIR =3D /data/postgres/12.4/bin DOCDIR =3D /data/postgres/12.4/share/doc HTMLDIR =3D /data/postgres/12.4/share/doc INCLUDEDIR =3D /data/postgres/12.4/include PKGINCLUDEDIR =3D /data/postgres/12.4/include INCLUDEDIR-SERVER =3D /data/postgres/12.4/include/server LIBDIR =3D /data/postgres/12.4/lib64 PKGLIBDIR =3D /data/postgres/12.4/lib64 LOCALEDIR =3D /data/postgres/12.4/share/locale MANDIR =3D /data/postgres/12.4/share/man SHAREDIR =3D /data/postgres/12.4/share SYSCONFDIR =3D /data/postgres/12.4/etc PGXS =3D /data/postgres/12.4/lib64/pgxs/src/makefiles/pgxs.mk CONFIGURE =3D '--prefix=3D/data/postgres/12.4' '--enable-nls' = '--with-perl' '--with-python' '--with-openssl' '--with-ldap' = '--with-libxml' '--with-tclconfig=3D/usr/lib64' CC =3D gcc CPPFLAGS =3D -D_GNU_SOURCE -I/usr/include/libxml2 CFLAGS =3D -Wall -Wmissing-prototypes -Wpointer-arith = -Wdeclaration-after-statement -Werror=3Dvla -Wendif-labels = -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing = -fwrapv -fexcess-precision=3Dstandard -Wno-format-truncation -O2 CFLAGS_SL =3D -fPIC LDFLAGS =3D -Wl,--as-needed = -Wl,-rpath,'/data/postgres/12.4/lib64',--enable-new-dtags LDFLAGS_EX =3D=20 LDFLAGS_SL =3D=20 LIBS =3D -lpgcommon -lpgport -lpthread -lxml2 -lssl -lcrypto -lz = -lreadline -lrt -lcrypt -ldl -lm=20 VERSION =3D PostgreSQL 12.4 PostgreSQL 13.0: $ pg_config=20 BINDIR =3D /data/postgres/13.0/bin DOCDIR =3D /data/postgres/13.0/share/doc HTMLDIR =3D /data/postgres/13.0/share/doc INCLUDEDIR =3D /data/postgres/13.0/include PKGINCLUDEDIR =3D /data/postgres/13.0/include INCLUDEDIR-SERVER =3D /data/postgres/13.0/include/server LIBDIR =3D /data/postgres/13.0/lib64 PKGLIBDIR =3D /data/postgres/13.0/lib64 LOCALEDIR =3D /data/postgres/13.0/share/locale MANDIR =3D /data/postgres/13.0/share/man SHAREDIR =3D /data/postgres/13.0/share SYSCONFDIR =3D /data/postgres/13.0/etc PGXS =3D /data/postgres/13.0/lib64/pgxs/src/makefiles/pgxs.mk CONFIGURE =3D '--prefix=3D/data/postgres/13.0' '--enable-nls' = '--with-icu' '--with-perl' '--with-python' '--with-openssl' = '--with-ldap' '--with-libxml' '--with-tclconfig=3D/usr/lib64' CC =3D gcc CPPFLAGS =3D -D_GNU_SOURCE -I/usr/include/libxml2 CFLAGS =3D -Wall -Wmissing-prototypes -Wpointer-arith = -Wdeclaration-after-statement -Werror=3Dvla -Wendif-labels = -Wmissing-format-attribute -Wimplicit-fallthrough=3D3 -Wformat-security = -fno-strict-aliasing -fwrapv -fexcess-precision=3Dstandard = -Wno-format-truncation -O2 CFLAGS_SL =3D -fPIC LDFLAGS =3D -Wl,--as-needed = -Wl,-rpath,'/data/postgres/13.0/lib64',--enable-new-dtags LDFLAGS_EX =3D=20 LDFLAGS_SL =3D=20 LIBS =3D -lpgcommon -lpgport -lpthread -lxml2 -lssl -lcrypto -lz = -lreadline -lrt -ldl -lm=20 VERSION =3D PostgreSQL 13.0 Cheers, Paul=