agora inbox for pgsql-general@postgresql.org
help / color / mirror / Atom feedFrom: Tom Lane <tgl@sss.pgh.pa.us>
To: Rich Shepard <rshepard@appl-ecosys.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Upgrading 6 versions between 2 systems
Date: Mon, 14 Sep 2026 16:43:20 -0400
Message-ID: <201090.1789418600@sss.pgh.pa.us> (raw)
In-Reply-To: <deee7dc-8e5e-cbba-aa3-2141e5d15c6a@appl-ecosys.com>
References: <deee7dc-8e5e-cbba-aa3-2141e5d15c6a@appl-ecosys.com>
Rich Shepard <rshepard@appl-ecosys.com> 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
view thread (13+ messages) latest in thread
Message-ID: <201090.1789418600@sss.pgh.pa.us>
Permalink: ../201090.1789418600@sss.pgh.pa.us/
Also on: postgresql.org/message-id/201090.1789418600@sss.pgh.pa.us
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, rshepard@appl-ecosys.com
Subject: Re: Upgrading 6 versions between 2 systems
In-Reply-To: <201090.1789418600@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox