Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZGNW-0002hJ-LI for pgsql-admin@arkaria.postgresql.org; Thu, 14 May 2020 16:06:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jZGNV-0005X3-IR for pgsql-admin@arkaria.postgresql.org; Thu, 14 May 2020 16:06:33 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZGNV-0005VI-Ax for pgsql-admin@lists.postgresql.org; Thu, 14 May 2020 16:06:33 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZGNQ-0001Uy-1o for pgsql-admin@postgresql.org; Thu, 14 May 2020 16:06:32 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1jZGNP-0005Fj-At; Thu, 14 May 2020 12:06:27 -0400 Date: Thu, 14 May 2020 12:06:27 -0400 From: Bruce Momjian To: Ankush Chawla Cc: pgsql-admin Subject: Re: Postgres Upgrades could not open version file PG_VERSIOn Message-ID: <20200514160627.GB8862@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 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 +