Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UoiWt-0006cL-ED for pgsql-admin@arkaria.postgresql.org; Mon, 17 Jun 2013 23:08:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UoiWs-0003mi-T3 for pgsql-admin@arkaria.postgresql.org; Mon, 17 Jun 2013 23:08:06 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UoiWr-0003lO-Rv for pgsql-admin@postgresql.org; Mon, 17 Jun 2013 23:08:06 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UoiWp-0000Wo-MO for pgsql-admin@postgresql.org; Mon, 17 Jun 2013 23:08:05 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1UoiWp-0000iw-F2; Mon, 17 Jun 2013 19:08:03 -0400 Date: Mon, 17 Jun 2013 19:08:03 -0400 From: Bruce Momjian To: jmfox180 Cc: pgsql-admin@postgresql.org Subject: Re: PG_UPGRADE issues "this utility can only upgrade to postgresql version 9.2." Message-ID: <20130617230803.GC1997@momjian.us> References: <1371491646614-5759509.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1371491646614-5759509.post@n5.nabble.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -0.3 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On Mon, Jun 17, 2013 at 10:54:06AM -0700, jmfox180 wrote: > so i'm running ubuntu 12.04 with pg8.3.2 installed on it, i want to upgrade > to 9.2.4 using the pg_upgrade. i've followed this steps: > > 1) download postgres9.2.4 > 2)configure it and compile it > 3) make and install the pg_upgrade and pg_upgrade_support utilities from the > pg9.2.4 contrib folder > 4) init the pg9.2.4 cluster with: initdb -D /usr/local/pgsql9.2.4/data > 5) try to check for compatibilities between the 2 clusters and getting the > following error while logged into postgres user account. > > command>> > /usr/local/pgsql9.2.0/bin/./pg_upgrade -b /usr/local/pgsql/bin/ -B > /usr/local/pgsql9.2.0/bin/ -c -d /usr/local/pgsql/data/ -D > /usr/local/pgsql9.2.0/data/ > > error>> > cannot write to log file pg_upgrade_internal.log > Failure, exiting > > 6) so i decided to move on and just do an upgrade without the -c (check for > compatibilities) : > > 6.1) stop both servers > 6.2) run the same command without the -c to upgrade and getting > : > " this utility can only upgrade to postgresql version 9.2" > > please enlighten me or give me any advice. You need write permission in the current directory. My guess is that your /usr/local/pgsql9.2.0/data/ isn't really 9.2. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. + -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin