From: Adrian Klaver <adrian.klaver@aklaver.com>
To: rob stone <floriparob@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Running pg_upgrade Version 11
Date: Tue, 6 Nov 2018 06:10:23 -0800
Message-ID: <ba697306-7170-2374-c6e6-e8e41f0f407c@aklaver.com> (raw)
In-Reply-To: <cb0911699d5b53c1c6b64b465b90c227d9a02c6d.camel@gmail.com>
References: <cb0911699d5b53c1c6b64b465b90c227d9a02c6d.camel@gmail.com>
On 11/5/18 9:27 PM, rob stone wrote:
> Hello,
>
> Trying to run pg_upgrade from version 10 to version 11 on the test
> server and pulling the following error:-
>
> could not open version file: /home/postgres/testing/data_v10/PG_VERSION
> Failure, exiting
>
> O/S is:- Debian 4.18.10-2 (2018-11-02) x86_64 GNU/Linux
>
> Running pg_upgrade as user postgres.
>
> These are the permissions on the version 10 file:-
>
> -rw------- 1 postgres postgres 3 Mar 23 2018 PG_VERSION
>
> These are the permissions on the version 11 file:-
>
> -rw------- 1 postgres postgres 3 Nov 6 14:50 PG_VERSION
>
> This is the command being run:-
>
> /usr/lib/postgresql/11/bin/pg_upgrade -b /usr/lib/postgresql/10/bin -B
> /usr/lib/postgresql/11/bin -d /home/postgres/testing/data_v10 -D
> /home/postgres/testing/data_v11
>
>
> Logged in as user postgres and postgres owns the files created by
> initdb, so is this a permissions problem or am I having a brain fade?
Is:
/home/postgres/testing/data_v10/
the correct path to the data directory?
What happens if you add?:
-U postgres
Maybe there is a PGUSER env variable set that is not postgres.
>
>
> TIA,
> Rob
>
>
>
>
>
--
Adrian Klaver
adrian.klaver@aklaver.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: adrian.klaver@aklaver.com, floriparob@gmail.com
Subject: Re: Running pg_upgrade Version 11
In-Reply-To: <ba697306-7170-2374-c6e6-e8e41f0f407c@aklaver.com>
References: <cb0911699d5b53c1c6b64b465b90c227d9a02c6d.camel@gmail.com> <ba697306-7170-2374-c6e6-e8e41f0f407c@aklaver.com>
* 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