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 1kMC0t-0002Wt-DX for pgsql-general@arkaria.postgresql.org; Sat, 26 Sep 2020 15:21:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kMC0r-0001Ub-R5 for pgsql-general@arkaria.postgresql.org; Sat, 26 Sep 2020 15:21:25 +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 1kMC0r-0001UN-Hc for pgsql-general@lists.postgresql.org; Sat, 26 Sep 2020 15:21:25 +0000 Received: from mail-ej1-x641.google.com ([2a00:1450:4864:20::641]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kMC0l-00071V-15 for pgsql-general@lists.postgresql.org; Sat, 26 Sep 2020 15:21:24 +0000 Received: by mail-ej1-x641.google.com with SMTP id q13so2548473ejo.9 for ; Sat, 26 Sep 2020 08:21:18 -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=1lzZB5KpMihkHG/vYfo5FVEKbYQhYGEXDUcFp5JM158=; b=KA/wBhIjIGs5+Ql4r+jyZVbdKdx/gLTe3M64/1dgChd5bYYNvhKgHrq0g3BtNwSIo4 uynYhaYyAACc6Gp+GLULq9WPqx/hM2PlHlnbJzynKBoS7uTBpVgfEGWWWBESB2NydN2W boWvwQawuARmYP0WFp+v/69jm7+VUOU8kPEV7XvFFrcAOvVMOdlJWMhLjvSXy8RNuAPl U/wQydH4yRKkm+g9G9Iak06kgO+tg3W4YZ3UhAlBFn1v+lwLyZex9kZTxAkIKPEu4MlX sleOXpcGTDQqMblfj72/MrgZrdIt9IS6YN9tibpheSnbpOS7IOeaqQqDpr8qVmAsYoYt DMag== 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=1lzZB5KpMihkHG/vYfo5FVEKbYQhYGEXDUcFp5JM158=; b=NZKcexvBYqVNX+z9K2yH8kqjqcM4Qtb9DfGkJHRDgEK3VKRhnX6oVU/dAq2QVsjiJP U4WQHmTOLVJDI+y+wyuMi5JGllZdXuZdKSSbbtM7qKnQy7Ww9Vami+tD/RJiDmXUwm6y zwQpJuox3npzzeQZ4SOHrIvHIrl3zoLKItTbyJBJabUcE6hLg95hnj8S0LpcYwo7fZAm /UQ44qW4lckhL+m4L/U3mo+Q+Z/m1Tdno3MGd5Uc1vRZwqK7UD3jQrw9mncv89ZLqfy4 5BtveQiBcraf5B8mUB2SxP8AgfR9mCiXKJ+BhJKJTCKFrZdfwXvBANcaKiGuNf+PdSEG +Hzg== X-Gm-Message-State: AOAM530ZZ75WwTAB3zFnXIq+TRo1zlbaQq6f4L5Njk6EzPFJVozzV8aA uYpY3R10jmUVk77tBQMCQcQRiqDUVyU= X-Google-Smtp-Source: ABdhPJwwY+7h3U4TES8UUkysEyynxm8nR4wq+9UcsYF3wUoGZM4kOcrVWezv2qEaamaKgj2BhFRdYg== X-Received: by 2002:a17:906:3759:: with SMTP id e25mr7708115ejc.281.1601133677746; Sat, 26 Sep 2020 08:21:17 -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 l10sm4521452edr.12.2020.09.26.08.21.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Sep 2020 08:21:17 -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: Date: Sat, 26 Sep 2020 17:21:16 +0200 Cc: Tom Lane , PostgreSQL General Content-Transfer-Encoding: quoted-printable Message-Id: 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> <9D64B513-77D4-41D9-87E5-0727FAF96C84@gmail.com> <1999120.1601131766@sss.pgh.pa.us> To: Adrian Klaver 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 Adrian, > On 26. Sep, 2020, at 17:07, Adrian Klaver = wrote: >=20 > I believe the issue is here: >=20 > select * from pg_pltemplate ; >=20 >=20 > plpythonu | f | f | plpython_call_handler | = plpython_inline_handler | plpython_validator | $libdir/plpython2 | = NULL > plpython2u | f | f | plpython2_call_handler | = plpython2_inline_handler | plpython2_validator | $libdir/plpython2 | = NULL > plpython3u | f | f | plpython3_call_handler | = plpython3_inline_handler | plpython3_validator | $libdir/plpython3 | = NULL >=20 >=20 > The default plpython is plpythonu and that points at = $libdir/plpython2. >=20 > The instructions here: >=20 > https://www.postgresql.org/docs/12/plpython-python23.html >=20 > offer a work around: >=20 > "Daredevils, who want to build a Python-3-only operating system = environment, can change the contents of pg_pltemplate to make plpythonu = be equivalent to plpython3u, keeping in mind that this would make their = installation incompatible with most of the rest of the world." sounds like: update pg_pltemplate set tmplhandler=3D'plpython3_call_handler', tmplinline=3D'plpython3_inline_handler', tmplvalidator=3D'plpython3_validator', tmpllibrary=3D'$libdir/plpython3' where tmplname=3D'plpythonu'; And that sounds somewhat dangerous to me, especially if I take the = comment on the plpython-python23 page into account: "keeping in mind = that this would make their installation incompatible with most of the = rest of the world." I'd rather not... Cheers, Paul=