From: Bruce Momjian <bruce@momjian.us>
To: Christian Ullrich <chris@chrullrich.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Problem with pg_upgrade 9.2 on Windows
Date: Thu, 13 Sep 2012 10:37:27 -0400
Message-ID: <20120913143727.GA29170@momjian.us> (raw)
In-Reply-To: <k2sio4$dqg$1@ger.gmane.org>
References: <k2sio4$dqg$1@ger.gmane.org>
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 <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ It's impossible for everything to be true. +
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: bruce@momjian.us, chris@chrullrich.net
Subject: Re: Problem with pg_upgrade 9.2 on Windows
In-Reply-To: <20120913143727.GA29170@momjian.us>
* 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