From: Tom Lane <tgl@sss.pgh.pa.us>
To: Lu, Dan <Dan.Lu@sig.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Upgrade check failed from 11.5 to 12.1
Date: Fri, 18 Dec 2020 16:55:04 -0500
Message-ID: <216128.1608328504@sss.pgh.pa.us> (raw)
In-Reply-To: <MN2PR19MB36139591D1A798962AFEC16F94C30@MN2PR19MB3613.namprd19.prod.outlook.com>
References: <MN2PR19MB36139591D1A798962AFEC16F94C30@MN2PR19MB3613.namprd19.prod.outlook.com>
"Lu, Dan" <Dan.Lu@sig.com> writes:
> I am trying to upgrade an instance of PostgreSQL in unix from 11.5 to 12.1.
> UNIX:> pg_upgrade -d /hostname/pg/dpoc/data -D /hostname/pg/dpoc/data -b /hostname/pg/PostgreSQL-11.5/bin -B /hostname/pg/PostgreSQL-12.1/bin -p 5432 -P 9432 -c -v
No, you can't use the same directory to hold old and new versions at the
same time. After you're done with the upgrade, you could move the new
data directory to be where the old one had been.
regards, tom lane
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: tgl@sss.pgh.pa.us, Dan.Lu@sig.com
Subject: Re: Upgrade check failed from 11.5 to 12.1
In-Reply-To: <216128.1608328504@sss.pgh.pa.us>
References: <MN2PR19MB36139591D1A798962AFEC16F94C30@MN2PR19MB3613.namprd19.prod.outlook.com> <216128.1608328504@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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox