pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Stephen Haddock <haddock.stephenm@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: psql backward compatibility
Date: Wed, 18 Nov 2020 13:22:52 -0300
Message-ID: <20201118162252.GA21225@alvherre.pgsql> (raw)
In-Reply-To: <CAAPwSkR12Hc1g9n+jqV3k9nCtavcPpL4KDLOrNYOajL316g9_w@mail.gmail.com>

On 2020-Nov-18, 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?

As others have said: yes.

> 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.

Actually, you can also use pg_upgrade, which might be more convenient,
particularly if your database is large.





view thread (12+ messages)  latest in thread

Message-ID: <20201118162252.GA21225@alvherre.pgsql>
Permalink:  ../20201118162252.GA21225@alvherre.pgsql/
Also on:    postgresql.org/message-id/20201118162252.GA21225@alvherre.pgsql

 · 

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 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: alvherre@alvh.no-ip.org, haddock.stephenm@gmail.com
  Subject: Re: psql backward compatibility
  In-Reply-To: <20201118162252.GA21225@alvherre.pgsql>
  References: <CAAPwSkR12Hc1g9n+jqV3k9nCtavcPpL4KDLOrNYOajL316g9_w@mail.gmail.com> <20201118162252.GA21225@alvherre.pgsql>

* 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