Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sKJLJ-009RIW-Ie for pgsql-general@arkaria.postgresql.org; Thu, 20 Jun 2024 15:04:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sKJKI-009I1K-Qd for pgsql-general@arkaria.postgresql.org; Thu, 20 Jun 2024 15:03:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sKJKI-009I1C-FG for pgsql-general@lists.postgresql.org; Thu, 20 Jun 2024 15:03:51 +0000 Received: from fout8-smtp.messagingengine.com ([103.168.172.151]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sKJKH-002fNY-0U for pgsql-general@postgresql.org; Thu, 20 Jun 2024 15:03:50 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfout.nyi.internal (Postfix) with ESMTP id 6511513801CB; Thu, 20 Jun 2024 11:03:47 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 20 Jun 2024 11:03:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1718895827; x=1718982227; bh=uwWjkqh5W5qmR5HjkGj3piK1wPERzzd1WB9xEhGMbIA=; b= LmJ/Qy07v6GmJwE0ByUM/q3tkB8U1wlrcePAoGZjNkv/a7zLtaycQpkeie0Mj9zC Q0o6fZQT8Tjtr7vApxX3vEZtkbF4zx11xBr9ttLeTJHtbnPOeYhk+Ifn47M7Zmeh 7ABUNzIywstFGMZoAQZaP0rx7QrBrxbkZ7+Z1dhFbepJCrrIhzr8pQxv6CcOyksw E28dN0wvfncdzVhBABYw8Mh3jXesE+oGCQw8MPQgMbIhmDMKlkWKRE7ghuQHEy1e qHdmjMUmvXVupXnEc3Y5YgSe4lzFf+zG8B/vBohdsDrRxeQDIEgFZoj11sAAJJs4 rsXsRm5kK2/KqDlqf6ZKqA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1718895827; x= 1718982227; bh=uwWjkqh5W5qmR5HjkGj3piK1wPERzzd1WB9xEhGMbIA=; b=Y BGIfYEi7uyctCZmhQR4LhqH2QVtavr4BQQ3yuDOMuGl/F0bX0FoT51m3JTAyLQla LUyvJUfD9KoE+yIvYNI3oC4Mvary3UF+kyJgDiJs/jidT6UOfOzo2Q8+s1JdH9Ay brTf8iM1Dwcfej2x7ejytGVO5cLA5txN8a0JtkwyrzgX/nHLnzXM0ZRrrIJHkWmE BS3VvZaW/GdvLdbqLVwUcYHzpZie+f7hUDIfI7PVXyBM+ihh29Gfm3pETvmFdRUA hbjvavBvsTT7s1mtqkSzu0y2FsrL1ipMTdiJzh7RU9GJizNGoo2GmEV8yGEHp6yj vzREp4bDUFICtOBbKoclw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeefvddgkeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthekredttddvjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeffleegieefgfevudehtdfhkeeutdffjeevgeffgeej vedthefgudeiteefheejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 20 Jun 2024 11:03:46 -0400 (EDT) Message-ID: <6822d060-675e-4418-9d62-29c82f38c0c5@aklaver.com> Date: Thu, 20 Jun 2024 08:03:45 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Postgresql python in upgraded version 16.2 To: =?UTF-8?Q?=C5=A0ika_Michal?= , "pgsql-general@postgresql.org" References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 6/19/24 22:05, Šika Michal wrote: > TLP:AMBER > > > Hello all, > I upgraded version of Postgres from 13.5 to newest 16.2. But Python was > not upgraded. > > I create procedure pyver(): > CREATE OR REPLACE FUNCTION pyver () >  RETURNS TEXT >  AS $$ >      import sys >      pyversion = sys.version >      return pyversion >  $$ LANGUAGE 'plpython3u'; > > On the Postgres 13.5 I get this result: > # psql -d database > psql (13.5) > Type "help" for help. > > postgres@database # select pyver(); >                   pyver > ----------------------------------------- >  3.6.8 (default, Aug 13 2020, 07:36:02) + >  [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] > (1 řádka) > > postgres@database # > > On the Postgres 16.2 (upgraded from version 13.5) I get this result: > # psql -d database > psql (16.2) > Type "help" for help. > > database=# select pyver(); >                   pyver > ----------------------------------------- >  3.6.8 (default, Jan  5 2024, 09:14:44) + >  [GCC 8.5.0 20210514 (Red Hat 8.5.0-20)] > (1 row) > > database=# > > It seems python was not upgraded when I upgrade PostgreSQL. Is possible > upgrade the python to actual version 3.9.x installed on RedHat 8.5 ? Where are you getting the packages from, the Red Hat repo or the PGDG repo? > > Thanks > Michal > > TLP:AMBER > -- Adrian Klaver adrian.klaver@aklaver.com