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 1t9TXp-00APSY-Qg for pgsql-general@arkaria.postgresql.org; Fri, 08 Nov 2024 18:17:17 +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 1t9TXn-00C1yK-7b for pgsql-general@arkaria.postgresql.org; Fri, 08 Nov 2024 18:17:15 +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 1t9TXm-00C1yC-TO for pgsql-general@lists.postgresql.org; Fri, 08 Nov 2024 18:17:15 +0000 Received: from smtp105.iad3b.emailsrvr.com ([146.20.161.105]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t9TXj-000tGy-K5 for pgsql-general@lists.postgresql.org; Fri, 08 Nov 2024 18:17:14 +0000 X-Auth-ID: xof@thebuild.com Received: by smtp22.relay.iad3b.emailsrvr.com (Authenticated sender: xof-AT-thebuild.com) with ESMTPSA id 8F7F860105; Fri, 8 Nov 2024 13:17:10 -0500 (EST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Subject: Re: Can we directly upgrade postgresql from 13 to 15.4 From: Christophe Pettus In-Reply-To: Date: Fri, 8 Nov 2024 10:16:39 -0800 Cc: pgsql-general@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: jayesh thakare X-Mailer: Apple Mail (2.3776.700.51) X-Classification-ID: 596bcb84-a380-443f-8c9e-a3517387179a-1-1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Nov 8, 2024, at 10:12, jayesh thakare = wrote: > Can we upgrade postresql from 13 to 15.4 directly? > Can we upgrade postgresql from 13 to 16 directly? Yes. > Ideally how many major version can we jump to from older version ? There's no practical limit, assuming the old version is not an ancient = version of PostgreSQL (pre-9.0, say). That being said, PostgreSQL's behavior changes with every major release, = and there is always the possibility of query plan changes or other = surprises. It's essential to test your application thoroughly on the = target version, and do dry runs of pg_upgrade.=