From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Simone Tellini <tellini@areabusiness.it>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_upgrade cmdline issue
Date: Mon, 11 Feb 2002 10:19:23 -0500 (EST)
Message-ID: <200202111519.g1BFJNq10014@candle.pha.pa.us> (raw)
In-Reply-To: <20020211114752.3A1F.TELLINI@areabusiness.it>
Simone Tellini wrote:
>
> On 11 Feb 2002 09:35:46 +0100
> Markus Bertheau <twanger@bluetwanger.de> wrote:
>
> MB> bash-2.05$ bin/pg_upgrade -D /var/lib/pgsql/data/ -1
> MB> You must run pg_upgrade in either mode 1 or mode 2.
> MB> Usage: pg_upgrade [-D datadir] -1 | -2
> MB> bash-2.05$
>
> I've got that too. Try export PGDATA=/var/lib/pgsql/data, then
> pg_upgrade -1
Patch attached and will appear in 7.2.1. I need more reports on
pg_upgrade, working or failing.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
Attachments:/bjm/diff (text/plain, 938B) download
Index: contrib/pg_upgrade/pg_upgrade
===================================================================
RCS file: /cvsroot/pgsql/contrib/pg_upgrade/pg_upgrade,v
retrieving revision 1.11
diff -c -r1.11 pg_upgrade
*** contrib/pg_upgrade/pg_upgrade 2002/01/31 19:13:53 1.11
--- contrib/pg_upgrade/pg_upgrade 2002/02/11 15:14:08
***************
*** 34,41 ****
BASENAME=`basename "$0"`
PHASE=""
! if [ "$#" -eq 1 ]
! then
if [ "X$1" = "X-1" ]
then PHASE="1"
shift
--- 34,41 ----
BASENAME=`basename "$0"`
PHASE=""
! while [ "$#" -ne 0 ]
! do
if [ "X$1" = "X-1" ]
then PHASE="1"
shift
***************
*** 46,52 ****
then PGDATA="$2"
shift 2
fi
! fi
if [ "$PHASE" = "" ]
then echo "You must run $BASENAME in either mode 1 or mode 2." 1>&2
--- 46,52 ----
then PGDATA="$2"
shift 2
fi
! done
if [ "$PHASE" = "" ]
then echo "You must run $BASENAME in either mode 1 or mode 2." 1>&2
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: pgman@candle.pha.pa.us, tellini@areabusiness.it
Subject: Re: pg_upgrade cmdline issue
In-Reply-To: <200202111519.g1BFJNq10014@candle.pha.pa.us>
References: <20020211114752.3A1F.TELLINI@areabusiness.it> <200202111519.g1BFJNq10014@candle.pha.pa.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