From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: System (and DB) upgrade problem., "part 2"
Date: Mon, 18 Jan 2021 12:36:21 +0100
Message-ID: <20210118113621.GA5132@hjp.at> (raw)
In-Reply-To: <6262bd4a-5d11-f0ec-0727-d6a0c10fb7f5@wp.pl>
References: <60bec2fa-3411-e676-2012-45c26f40eab7@wp.pl>
<f8e452fe60e5dc30a4ae0bb18a3624f2f23ddcd3.camel@cybertec.at>
<6262bd4a-5d11-f0ec-0727-d6a0c10fb7f5@wp.pl>
On 2021-01-18 05:33:05 +0100, W.P. wrote:
> Now I have problem with 9.6 -> 10.7 (Fedora 27 -> 28) upgrade.
> As expected after system upgrade, database fails to start "files
> incompatible with binaries".
>
> Found pg_upgrade, command line options "-b /usr/lib/pgsql/postgresql-9.6/bin
> -B /usr/bin -d /var/lib/pgsql/data/" BUT what should I put for option -D?
> ("new cluster data") Was (directory) already created for me (during system
> upgrade), or have I to create it somewhere (where? is best practice).
The Debian/Ubuntu package contains a script pg_upgradecluster which
knows about the distribution-specific directory layout. You would
normally use that script instead pg_upgrade directly.
Maybe the Fedora package has something similar?
hp
--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"
Attachments:
signature.asc (application/pgp-signature, 832B) download
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: hjp-pgsql@hjp.at
Subject: Re: System (and DB) upgrade problem., "part 2"
In-Reply-To: <20210118113621.GA5132@hjp.at>
References: <60bec2fa-3411-e676-2012-45c26f40eab7@wp.pl> <f8e452fe60e5dc30a4ae0bb18a3624f2f23ddcd3.camel@cybertec.at> <6262bd4a-5d11-f0ec-0727-d6a0c10fb7f5@wp.pl> <20210118113621.GA5132@hjp.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