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.96) (envelope-from ) id 1x6DaG-0006T5-2O for pgsql-general@arkaria.postgresql.org; Mon, 14 Sep 2026 20:47:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x6DaG-00FYhE-0W for pgsql-general@arkaria.postgresql.org; Mon, 14 Sep 2026 20:47:24 +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.96) (envelope-from ) id 1x6DWP-00FTe2-0w for pgsql-general@lists.postgresql.org; Mon, 14 Sep 2026 20:43:25 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x6DWN-000000004xi-1zqX for pgsql-general@postgresql.org; Mon, 14 Sep 2026 20:43:24 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 68EKhK5c201091; Mon, 14 Sep 2026 16:43:20 -0400 From: Tom Lane To: Rich Shepard cc: pgsql-general@postgresql.org Subject: Re: Upgrading 6 versions between 2 systems In-reply-to: References: Comments: In-reply-to Rich Shepard message dated "Mon, 14 Sep 2026 13:26:28 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <201089.1789418600.1@sss.pgh.pa.us> Date: Mon, 14 Sep 2026 16:43:20 -0400 Message-ID: <201090.1789418600@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Rich Shepard writes: > I know that data formats can change with postgres version increases so my > question is: can I use dumpall in the 12.7 version and move that to the host > running 18.6 since the output is a text .sql file? You could, but better practice is to use pg_dump[all] from the newer version to take a dump from the old server. The idea behind that recommendation is that the newer pg_dump may contain bug fixes that aren't in the 12.7 version (especially noting that 12.7 is many minor releases short of v12's EOL). Keep in mind also that 6 years is a lot of time for things to change. I expect your dump will probably load okay, but test your application for compatibility. regards, tom lane