Re: System (and DB) upgrade problem., "part 2" - Mailing list pgsql-general

From Peter J. Holzer
Subject Re: System (and DB) upgrade problem., "part 2"
Date
Msg-id 20210118113621.GA5132@hjp.at
Whole thread Raw
In response to Re: System (and DB) upgrade problem., "part 2"  ("W.P." <laurentp@wp.pl>)
List pgsql-general
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!"

Attachment

pgsql-general by date:

Previous
From: Tim Clarke
Date:
Subject: Re: Is it possible to compare a long text string and fuzzy match only phrases contained in?
Next
From: "Peter J. Holzer"
Date:
Subject: Re: Do we need a way to moderate mailing lists?