From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Mihalidesová Jana <jana.mihalidesova@cetin.cz>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Upgrade to 12.2 using same data directory
Date: Tue, 25 Feb 2020 15:35:45 +0100
Message-ID: <f1382512f2e6f288c4c246a01d1b2501f6c7d431.camel@cybertec.at> (raw)
In-Reply-To: <ff4794552c8e413884351ead4b30cecb@cewexch403.ad.cetin>
References: <ff4794552c8e413884351ead4b30cecb@cewexch403.ad.cetin>
On Tue, 2020-02-25 at 11:58 +0000, Mihalidesová Jana wrote:
> Is there possibility to upgrade from 10.6 to 12.2 using exact same data directory?
> First problem is with initialing of “new” cluster. Then pg_upgrade check fail.
>
> ./pg_upgrade -b $OLD/bin -B $NEWd/bin -d $OLD -D $OLD -k -c
No, but that is not necessary.
- Create a new cluster on the same file system as the old one.
- Run "pg_upgrade" with the -k option.
- Remove the old cluster and move the new one in the place of
the old one.
- Start the server (with the new binaries of course).
Don't forget to ANALYZE.
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
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: laurenz.albe@cybertec.at, jana.mihalidesova@cetin.cz
Subject: Re: Upgrade to 12.2 using same data directory
In-Reply-To: <f1382512f2e6f288c4c246a01d1b2501f6c7d431.camel@cybertec.at>
References: <ff4794552c8e413884351ead4b30cecb@cewexch403.ad.cetin> <f1382512f2e6f288c4c246a01d1b2501f6c7d431.camel@cybertec.at>
* 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