Skip to content

Commit 966e647

Browse files
committed
Fix flag handling of pg_upgrade.
1 parent 15c30b6 commit 966e647

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

contrib/pg_upgrade/pg_upgrade

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# pg_upgrade: update a database without needing a full dump/reload cycle.
44
# CAUTION: Read the manual page before trying to use this!
55

6-
# $Header: /cvsroot/pgsql/contrib/pg_upgrade/Attic/pg_upgrade,v 1.11 2002/01/31 19:13:53 momjian Exp $
6+
# $Header: /cvsroot/pgsql/contrib/pg_upgrade/Attic/pg_upgrade,v 1.12 2002/02/11 15:19:33 momjian Exp $
77
#
88
# To migrate this to newer versions of PostgreSQL:
99
# 1) Update the version numbers at the top of the file
@@ -34,8 +34,8 @@ trap "rm -f /tmp/$$.*" 0 1 2 3 15
3434
BASENAME=`basename "$0"`
3535
PHASE=""
3636

37-
if [ "$#" -eq 1 ]
38-
then
37+
while [ "$#" -ne 0 ]
38+
do
3939
if [ "X$1" = "X-1" ]
4040
then PHASE="1"
4141
shift
@@ -46,7 +46,7 @@ then
4646
then PGDATA="$2"
4747
shift 2
4848
fi
49-
fi
49+
done
5050

5151
if [ "$PHASE" = "" ]
5252
then echo "You must run $BASENAME in either mode 1 or mode 2." 1>&2

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy