From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: psql backward compatibility
Date: Wed, 18 Nov 2020 11:14:02 -0600
Message-ID: <6177b328-279b-2b96-9305-3f366bed6a96@gmail.com> (raw)
In-Reply-To: <60428523-c916-9962-3875-d9cca1644f8f@aklaver.com>
References: <CAAPwSkR12Hc1g9n+jqV3k9nCtavcPpL4KDLOrNYOajL316g9_w@mail.gmail.com>
<60428523-c916-9962-3875-d9cca1644f8f@aklaver.com>
On 11/18/20 10:13 AM, Adrian Klaver wrote:
> On 11/18/20 8:05 AM, Stephen Haddock wrote:
>> Hello,
>>
>> When upgrading an older version of postgres, version 8.4 for example, to
>> a newer version such as 9.6, does the data have to be migrated immediately?
>>
>> It looks like the recommended method is to dump the data, upgrade,
>> initialize a new cluster, and then restore the dumped data into the newer
>> version. My question is whether the data dump and restore must be done
>> immediately. It appears that 9.6 is able to run against the older cluster
>> (DB service starts, queries work, etc), and the data could be migrated
>> days or weeks later. I don't know if that is asking for issues down the
>> line though such as 9.6 corrupting the data due to incompatibilities
>> between the two versions.
>
> https://www.postgresql.org/docs/9.6/app-pgdump.html
>
> "Because pg_dump is used to transfer data to newer versions of PostgreSQL,
> the output of pg_dump can be expected to load into PostgreSQL server
> versions newer than pg_dump's version. pg_dump can also dump from
> PostgreSQL servers older than its own version. (Currently, servers back to
> version 7.0 are supported.) "
>
>
> The above is for Postgres 9.6 version of pg_dump. Newer versions(10+) go
> back to Postgres 8.0. You can dump the old server at anytime. The
> important thing to remember is to dump the old server using the new
> servers version of pg_dump. So in your case pg_dump(9.6) against server(8.4).
This is especially useful, since the 9.6 pg_dump is able to do parallel
operations against 8.4.
--
Angular momentum makes the world go 'round.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: ronljohnsonjr@gmail.com
Subject: Re: psql backward compatibility
In-Reply-To: <6177b328-279b-2b96-9305-3f366bed6a96@gmail.com>
References: <CAAPwSkR12Hc1g9n+jqV3k9nCtavcPpL4KDLOrNYOajL316g9_w@mail.gmail.com> <60428523-c916-9962-3875-d9cca1644f8f@aklaver.com> <6177b328-279b-2b96-9305-3f366bed6a96@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox