Re: Problem with pg_upgrade 9.2 on Windows

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Christian Ullrich <chris(at)chrullrich(dot)net>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Problem with pg_upgrade 9.2 on Windows
Date: 2012-09-13 14:37:27
Message-ID: 20120913143727.GA29170@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message johnkn63 2012-09-13 14:46:57 Re: non-superuser login phpPgAdmin PostgreSQL 9.1
Previous Message Kevin Grittner 2012-09-13 14:13:58 Re: pg_restore problem "Found unexpected Block id"