Re: psql backward compatibility

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Stephen Haddock <haddock(dot)stephenm(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: psql backward compatibility
Date: 2020-11-18 16:22:52
Message-ID: 20201118162252.GA21225@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2020-11-18 16:27:31 Re: psql backward compatibility
Previous Message Snjezana Frketic 2020-11-18 16:21:57 Re: How to select values in a JSON type of column?