pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedpg_upgrade cmdline issue
5+ messages / 3 participants
[nested] [flat]
* pg_upgrade cmdline issue
@ 2002-02-11 08:35 Markus Bertheau <twanger@bluetwanger.de>
2002-02-11 10:48 ` Re: pg_upgrade cmdline issue Simone Tellini <tellini@areabusiness.it>
0 siblings, 1 reply; 5+ messages in thread
From: Markus Bertheau @ 2002-02-11 08:35 UTC (permalink / raw)
To: pgsql-admin
Good day,
why's that?
(user is postgres, who owns /var/lib/pgsql/data/)
bash-2.05$ bin/pg_upgrade -D /var/lib/pgsql/data/ -1
You must run pg_upgrade in either mode 1 or mode 2.
Usage: pg_upgrade [-D datadir] -1 | -2
bash-2.05$
Markus Bertheau
Attachments:
signature.asc (application/pgp-signature, 231B) download
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: pg_upgrade cmdline issue
2002-02-11 08:35 pg_upgrade cmdline issue Markus Bertheau <twanger@bluetwanger.de>
@ 2002-02-11 10:48 ` Simone Tellini <tellini@areabusiness.it>
2002-02-11 15:19 ` Re: pg_upgrade cmdline issue Bruce Momjian <pgman@candle.pha.pa.us>
2002-02-11 15:55 ` Re: pg_upgrade cmdline issue Markus Bertheau <twanger@bluetwanger.de>
0 siblings, 2 replies; 5+ messages in thread
From: Simone Tellini @ 2002-02-11 10:48 UTC (permalink / raw)
To: pgsql-admin
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
--
Simone Tellini
E-mail: tellini@areabusiness.it
http://www.areabusiness.it
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: pg_upgrade cmdline issue
2002-02-11 08:35 pg_upgrade cmdline issue Markus Bertheau <twanger@bluetwanger.de>
2002-02-11 10:48 ` Re: pg_upgrade cmdline issue Simone Tellini <tellini@areabusiness.it>
@ 2002-02-11 15:19 ` Bruce Momjian <pgman@candle.pha.pa.us>
1 sibling, 0 replies; 5+ messages in thread
From: Bruce Momjian @ 2002-02-11 15:19 UTC (permalink / raw)
To: Simone Tellini <tellini@areabusiness.it>; +Cc: pgsql-admin
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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: pg_upgrade cmdline issue
2002-02-11 08:35 pg_upgrade cmdline issue Markus Bertheau <twanger@bluetwanger.de>
2002-02-11 10:48 ` Re: pg_upgrade cmdline issue Simone Tellini <tellini@areabusiness.it>
@ 2002-02-11 15:55 ` Markus Bertheau <twanger@bluetwanger.de>
2002-02-11 18:57 ` Re: pg_upgrade cmdline issue Bruce Momjian <pgman@candle.pha.pa.us>
1 sibling, 1 reply; 5+ messages in thread
From: Markus Bertheau @ 2002-02-11 15:55 UTC (permalink / raw)
To: Simone Tellini <tellini@areabusiness.it>; +Cc: pgsql-admin
On Mon, 2002-02-11 at 11:48, 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
Bug, Bruce, right? :)
Markus Bertheau
Attachments:
signature.asc (application/pgp-signature, 231B) download
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: pg_upgrade cmdline issue
2002-02-11 08:35 pg_upgrade cmdline issue Markus Bertheau <twanger@bluetwanger.de>
2002-02-11 10:48 ` Re: pg_upgrade cmdline issue Simone Tellini <tellini@areabusiness.it>
2002-02-11 15:55 ` Re: pg_upgrade cmdline issue Markus Bertheau <twanger@bluetwanger.de>
@ 2002-02-11 18:57 ` Bruce Momjian <pgman@candle.pha.pa.us>
0 siblings, 0 replies; 5+ messages in thread
From: Bruce Momjian @ 2002-02-11 18:57 UTC (permalink / raw)
To: Markus Bertheau <twanger@bluetwanger.de>; +Cc: Simone Tellini <tellini@areabusiness.it>; pgsql-admin
Markus Bertheau wrote:
Checking application/pgp-signature: FAILURE
-- Start of PGP signed section.
> On Mon, 2002-02-11 at 11:48, 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
>
> Bug, Bruce, right? :)
Yes. Bug.
--
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
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2002-02-11 18:57 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-02-11 08:35 pg_upgrade cmdline issue Markus Bertheau <twanger@bluetwanger.de>
2002-02-11 10:48 ` Simone Tellini <tellini@areabusiness.it>
2002-02-11 15:19 ` Bruce Momjian <pgman@candle.pha.pa.us>
2002-02-11 15:55 ` Markus Bertheau <twanger@bluetwanger.de>
2002-02-11 18:57 ` Bruce Momjian <pgman@candle.pha.pa.us>
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