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 1ri2zK-00EpDi-Gc for pgsql-general@arkaria.postgresql.org; Thu, 07 Mar 2024 01:56:03 +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 1ri2zG-00GnDa-LX for pgsql-general@arkaria.postgresql.org; Thu, 07 Mar 2024 01:55:59 +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 1ri2zE-00Gn4Z-Lh for pgsql-general@lists.postgresql.org; Thu, 07 Mar 2024 01:55:58 +0000 Received: from fhigh4-smtp.messagingengine.com ([103.168.172.155]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ri2z9-003ES2-2e for pgsql-general@lists.postgresql.org; Thu, 07 Mar 2024 01:55:54 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfhigh.nyi.internal (Postfix) with ESMTP id B0DED1140115; Wed, 6 Mar 2024 20:55:50 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 06 Mar 2024 20:55:50 -0500 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=fm3; t=1709776550; x=1709862950; bh=n9JjyBoEIih1eljhK7OI1vFJ3wJZGeBgTl7gqCOY3jk=; b= UD8h9ymSRvST55PA4U/wwOT8+MtKH6KMfcAqVWrGWwEUC0pyZljtaPHUjcaLHrCz huQiKuIDZp55E4vuocHrXyMKRc7dk91oF2hHHQix7AXtvfg8WPdh5RQoFp3gK/Ld mllphQw4G0qhMCuSiIhKLTfBDwIwe7RH4S7zkCEueOnfPjw87jDGfm3p0AdeSs9A GydzFZiOgzdSQpXs4Gte6xKNvib//MazkumGbVuovn8OKDEFpVAaTfPRuO/TF2y8 IWRHHg//1Is0RwRRPMtKGi8XNdUB/48WmsKLUl5VPVhk9gePPWKAxmgzpx0NwFBE 5kJFw+h10wVYJ8iIk3ElVw== 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=fm1; t=1709776550; x= 1709862950; bh=n9JjyBoEIih1eljhK7OI1vFJ3wJZGeBgTl7gqCOY3jk=; b=Y VchQ/UahWLNyXsqGQZ/GdLw1gWj6Z3cwMQpTlYc9dEXa7GJmRoNh1QuQjUdZKZ7v bPYxfRKMKEssT4AkVRQrqd03c7kzuNsMykLlkRhijOZUOZ9R2vp4FB6A4OaYPdhf Nhlv/PBOmX3NZLruvVGDQYfefu8Vfd9zjBcEj/181E09s69BHe3asjTGyA903Eni FFCkWT56MKkUrMG8eQcZ49u6jRPu/U8rImyNvhDw8uY8NgR+8ptoJy194YvbSf24 +kuHm9MFvBOfJCxVMvCJWIguLK5attVqvtMdAwrroO0NeMndQOz3YC1K9Y8drABi gVkgCoXZt9twkLQyouRgA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledriedvgdegtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekre dttddvjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeffleegieefgf evudehtdfhkeeutdffjeevgeffgeejvedthefgudeiteefheejheenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvg hrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 6 Mar 2024 20:55:49 -0500 (EST) Message-ID: Date: Wed, 6 Mar 2024 17:55:49 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: v11.5- v15.3 upgrade (linux) Content-Language: en-US To: David Gauthier , pgsql-general@lists.postgresql.org References: 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 3/6/24 16:19, David Gauthier wrote: > Hi: > I'm a PG user in a big corp with an IT dept that administers a PG > server/instance that I use.  It's an old install, v11.5, and we need to > upgrade to v15.3.  They want to bring the upgraded DB up on a new linux > vm which has OS upgrades of its own.  So it's a move AND an upgrade. > There are 2 concerns.... > > First has to do with a jump from 11.5 - 15.3 ?  Is it safe to do this > given so many major intermediate versions being skipped ? I would definitely read the release notes for 12.0, 13.0, 14.0 and 15.0. They will show the breaking changes. > > Second has to do with the 11.5 having the perlplu extension installed. > The DBA created a v15.3 instance on the new server and tried to restore > an 11.5 backup onto/into the 15.3 (as an experiment) but got several > error messages like this... "ERROR:extension "plperlu" is not > available".  I really didn't need any of the perlplu procs/funcs I How are and from where are you installing the Postgres package(s)? Generally the procedural languages packages are separate from the server package. I'm betting the error is occurring because the plperlu package was not installed for the 15.3 instance of Postgres. > created, so I dropped them all but the error persists.  I suggested to > drop the perlplu extension in the 11.5 (drop extension perlplu cascade) > but there is a concern that it might break something.  So the question > is... Will dropping the perlplu extension break anything (given that > there are no perlplu procs/funcs).  Just to be safe, "select > l.lanname,count(*) from pg_proc p, pg_language l WHERE p.prolang = l.oid > group by 1;" shows that there are no perlplu procs/fns. The would be plan 2 if installing the plperlu package is not possible. > > Finally, what is the best approach to making the server move AND PG > upgrade... > 1) backup the 11.5 and restore into a 15.3 PG instance on the upgraded > server ? I would backup the 11.5 instance whatever else you plan to do, better safe then sorry. > 2) upgrade the 11.3 DB to 15.3, back that up and then restore on the > upgraded server ? > 3) upgrade the 11.3 DB to 15.3, then set the 15.3 destination server as > a replicated DB (let it populate) then designate the destination server > as the primary then cut the old server loose ?  (this approach would > probably minimize DB downtime by a lot I would think) The above is going to depend on the size of the database and any possible breaking/behavioral changes you find in the release notes. If you have the ability to do a test migration on a test machine where oops are not a problem that would be way to verify the 2) and 3) options. > > Any other suggestions ? > > Thanks for any advise/help ! -- Adrian Klaver adrian.klaver@aklaver.com