Обсуждение: Postgres Upgrades could not open version file PG_VERSIOn

Поиск
Список
Период
Сортировка

Postgres Upgrades could not open version file PG_VERSIOn

От
Ankush Chawla
Дата:
Hello

I tried Upgrading Postgres in linux and then on Windows both gave same error message

C:\Program Files\edb\as11\bin>pg_upgrade -c -b "C:\Program Files\PostgreSQL\10\bin" -B "C:\Program Files\edb\as11\bin" -d "C:\Program Files\PostgreSQL\10\data" -D "C:\Program Files\edb\as11\data1"

could not open version file: C:\Program Files\edb\as11\data1/PG_VERSION
Failure, exiting


--
Best Regards,
Ankush Chawla

Re: Postgres Upgrades could not open version file PG_VERSIOn

От
Bruce Momjian
Дата:
On Thu, May 14, 2020 at 09:02:47PM +0530, Ankush Chawla wrote:
> Hello
> 
> I tried Upgrading Postgres in linux and then on Windows both gave same error
> message
> 
> C:\Program Files\edb\as11\bin>pg_upgrade -c -b "C:\Program Files\PostgreSQL\10\
> bin" -B "C:\Program Files\edb\as11\bin" -d "C:\Program Files\PostgreSQL\10\
> data" -D "C:\Program Files\edb\as11\data1"
> 
> could not open version file: C:\Program Files\edb\as11\data1/PG_VERSION
> Failure, exiting

Well, did you run initdb for that directory?  Is there a PG_VERSION file
in there?

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EnterpriseDB                             https://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +



Re: Postgres Upgrades could not open version file PG_VERSIOn

От
Holger Jakobs
Дата:
Try forward slashes instead of backslashes.

Am 14. Mai 2020 17:32:47 MESZ schrieb Ankush Chawla <ankushchawla03@gmail.com>:
Hello

I tried Upgrading Postgres in linux and then on Windows both gave same error message

C:\Program Files\edb\as11\bin>pg_upgrade -c -b "C:\Program Files\PostgreSQL\10\bin" -B "C:\Program Files\edb\as11\bin" -d "C:\Program Files\PostgreSQL\10\data" -D "C:\Program Files\edb\as11\data1"

could not open version file: C:\Program Files\edb\as11\data1/PG_VERSION
Failure, exiting


--
Best Regards,
Ankush Chawla


--
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.