Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TCAXq-0004NX-8y for pgsql-admin@postgresql.org; Thu, 13 Sep 2012 14:37:30 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TCAXo-0006wd-SO for pgsql-admin@postgresql.org; Thu, 13 Sep 2012 14:37:29 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1TCAXn-00046P-QX; Thu, 13 Sep 2012 10:37:27 -0400 Date: Thu, 13 Sep 2012 10:37:27 -0400 From: Bruce Momjian To: Christian Ullrich Cc: pgsql-admin@postgresql.org Subject: Re: Problem with pg_upgrade 9.2 on Windows Message-ID: <20120913143727.GA29170@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -2.4 (--) X-Archive-Number: 201209/73 X-Sequence-Number: 40014 On Thu, Sep 13, 2012 at 02:15:00PM +0200, Christian Ullrich wrote: > Hello all, > > I get the following output from pg_upgrade when trying to upgrade a > test cluster on Windows 7 x64: > > c:\Daten>path > PATH=c:\windows;c:\windows\system32;c:\Program Files\PostgreSQL\9.2\bin > > c:\Daten>pg_upgrade --old-bindir="c:\Program Files\PostgreSQL\9.1\bin" > --new-bindir="c:\Program Files\PostgreSQL\9.2\bin" > --old-datadir="c:\Daten\db\pgsql" > --new-datadir=c:\Daten\db\pgsql-9.2\data --old-port=5432 > --new-port=5433 --user=postgres --verbose --check So I assume this is an upgrade from 9.1 to 9.2, based on the prompts, right? > > [...] > > Checking for contrib/isn with bigint-passing mismatch ok > ""c:\Program Files\PostgreSQL\9.1\bin/pg_ctl" -w -D > "c:\Daten\db\pgsql" -o "" stop >> "pg_upgrade_utility.log" 2>&1" Notice the -o "" above. I am confused how you could get that because looking at the 9.2.0 source code I see: snprintf(cmd, sizeof(cmd), "\"%s/pg_ctl\" -w -l \"%s\" -D \"%s\" -o \"-p %d %s %s%s\" start", ------- cluster->bindir, SERVER_LOG_FILE, cluster->pgconfig, cluster->port, (cluster->controldata.cat_ver >= BINARY_UPGRADE_SERVER_FLAG_CAT_VER) ? "-b" : "-c autovacuum=off -c autovacuum_freeze_max_age=2000000000", cluster->pgopts ? cluster->pgopts : "", socket_string); Notice that -o always has at least "-p". Please tell use the server versions and where you got these binaries. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +