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 1slWuH-008P2a-Rk for pgsql-general@arkaria.postgresql.org; Tue, 03 Sep 2024 17:01:30 +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 1slWuH-00EIzp-0Y for pgsql-general@arkaria.postgresql.org; Tue, 03 Sep 2024 17:01:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1slWuG-00EIyb-Kg for pgsql-general@lists.postgresql.org; Tue, 03 Sep 2024 17:01:28 +0000 Received: from fout7-smtp.messagingengine.com ([103.168.172.150] helo=pfout7-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1slWuE-000TuC-4i for pgsql-general@lists.postgresql.org; Tue, 03 Sep 2024 17:01:27 +0000 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id 6482513802C5; Tue, 3 Sep 2024 13:01:24 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Tue, 03 Sep 2024 13:01:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc: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=fm3; t=1725382884; x=1725469284; bh=5h4H3fR/2JX2AgFHxiBbtgEstn5rbifIEu9tD4kCAMY=; b= XdWJgHo3EVx77oh8550WA4XxnmwcBxhHhd34p4XeV0+lLXyEfeZCPV3oXdfnCuyI h9LrQe5oFB7PjrEPryIzKxi9uaXCxNCFuADz7GJ9Xqh41dICxx+LM9BFfo6cNvmO j5L0rDvzwhEeFQ+dDVSXEnGFVm/QZY7F0ipXKV7fH2+AMCk+idCQ3HDI95a5Fv+C kJnzEvNVnoEKjvX2EYxly5STxkb61mD2vATcw3C5NFRQVZeqeISQ75YQ5hvbKdyU pVXgN2D5y8cjx5u+Pbn1r8Mqltp1cO+zoeo3ZhueBMVvgU8JqhOW6rSCtiAkIv6F SO/Ffn5byCAd1eZwkF1lVA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm1; t=1725382884; x= 1725469284; bh=5h4H3fR/2JX2AgFHxiBbtgEstn5rbifIEu9tD4kCAMY=; b=X 9HFsMBLgDSgWYEy2JvZnRGFwi3KJ/CMDXQJuKMP/cPgTRXD3qar09i+I7JBPxHkn h5HFb3cyTRzkEaxBrwHc3S42IcFKGfXcB2xAsXBZrGbB8TX+OT7Qm2sEyjWf4YCE v9/0V9pEqNvCG11SLEr9nnftvU6ba0T6Pi2qQI3/EHR3KGTy5BXTc55/ZAPQqOtr 68eC0POIl0kTmzG+i0qQHVmXMhlUHgcZG0HHj+KtdD0bkIpoA4R26taTlp+YQe/J qoEFgRv+H0U20fQzLBt80v86j/kplPghLxoQN135144cTV1WyFADWqWfd0yCQbFK ZoDWbPcbikqD7IjzKAgOQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudehhedguddtkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefkffggfgfuhffvvehfjggtgfesthejredttddv jeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvg hrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeetledttefhudetjedt uefhjeffieeuudevieelheekfeetffevtdevveeuheeiheenucffohhmrghinhepphhosh htghhrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhdpnh gspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepuhhsmhgr nhdrkhessghithhnihhnvgdrnhgvthdprhgtphhtthhopehsrghmkeelrdhgsehgmhgrih hlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqghgvnhgvrhgrlheslhhishhtshdrphho shhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 3 Sep 2024 13:01:23 -0400 (EDT) Message-ID: Date: Tue, 3 Sep 2024 10:01:21 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Issue with Restore dump with plpythonu, plpython3u installed on postgres16 From: Adrian Klaver To: Muhammad Usman Khan , Sam Son Cc: pgsql-general@lists.postgresql.org References: Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 9/3/24 09:37, Adrian Klaver wrote: > On 9/3/24 09:25, Muhammad Usman Khan wrote: >> Hi, >> You need to install plpython3u on your new server and also make sure >> to use python3. You need to make changes to your functions also to >> make them compatible with python3 > > That only works if the dump from the old server is outputting > plpython3u. If the plpythonu is the only version installed on the old > server then that is what will be in the dump file. As of Postgres 15 > plpythonu is no longer available: > > https://www.postgresql.org/docs/15/plpython-python23.html > > This means if you are moving to 15+ you can't have any references to > plpythonu. > In previous post I should have added: https://www.postgresql.org/docs/15/release-15.html Remove server-side language plpython2u and generic Python language plpythonu (Andres Freund) Python 2.x is no longer supported. While the original intent of plpythonu was that it could eventually refer to plpython3u, changing it now seems more likely to cause problems than solve them, so it's just been removed. Adrian Klaver adrian.klaver@aklaver.com